File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
services/apps/cache_worker/src/schedules Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import { ScheduleAlreadyRunning , ScheduleOverlapPolicy } from '@temporalio/client'
22
33import { svc } from '../main'
4- import { dailyGetAndComputeOrgAggs } from '../workflows'
4+ import { spawnOrganizationAggregatesComputation } from '../workflows'
55
66export 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 ) {
You can’t perform that action at this time.
0 commit comments