Skip to content

Commit 0432556

Browse files
committed
fix
1 parent a4f264c commit 0432556

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

services/apps/cache_worker/src/schedules/computeOrgAggsDaily.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { ScheduleAlreadyRunning, ScheduleOverlapPolicy } from '@temporalio/client'
22

33
import { svc } from '../main'
4-
import { dailyGetAndComputeOrgAggs } from '../workflows'
4+
import { spawnOrganizationAggregatesComputation } from '../workflows'
55

66
export const scheduleComputeOrgAggsDaily = async () => {
77
try {
88
await svc.temporal.schedule.create({
9-
scheduleId: 'compute-org-aggs-daily',
9+
scheduleId: 'computeOrgAggsDaily',
1010
spec: {
1111
cronExpressions: ['0 8 * * *'],
1212
},
@@ -16,9 +16,8 @@ export const scheduleComputeOrgAggsDaily = async () => {
1616
},
1717
action: {
1818
type: 'startWorkflow',
19-
workflowType: dailyGetAndComputeOrgAggs,
19+
workflowType: spawnOrganizationAggregatesComputation,
2020
taskQueue: 'cache',
21-
workflowExecutionTimeout: '5 minutes',
2221
},
2322
})
2423
} catch (err) {

0 commit comments

Comments
 (0)