I’ve scheduled multiple schedules to the same task queue & schedule interval with different inputs.
Only one of the schedule is running at the schedule time.
$scheduleClient = ScheduleClient::create(ServiceClient::create(env('TEMPORAL_ADDRESS', 'localhost:7233')));
$intervalSpec = IntervalSpec::new("PT1M");
$spec = ScheduleSpec::new()->withAddedInterval($intervalSpec);
$action = Schedule\Action\StartWorkflowAction::new("SyncPRs")
->withInput([(string)$repo->id])
->withTaskQueue('sync_prs')
->withRetryPolicy(RetryOptions::new()->withMaximumAttempts(3))
->withWorkflowRunTimeout('100m');
$schedule = Schedule\Schedule::new()
->withAction($action)
->withSpec($spec)
->withPolicies(Schedule\Policy\SchedulePolicies::new()
->withCatchupWindow('10m')
->withPauseOnFailure(true)
->withOverlapPolicy(Schedule\Policy\ScheduleOverlapPolicy::AllowAll)
);
$handle = $scheduleClient->createSchedule($schedule,scheduleId: 'sync_prs_'.$repo->id);
Log::info('Created ScheduleID='.$handle->getID().' for repo='.$repo->id);
The expectation is that each one of the schedules will get triggered at the scheduled time independently. What am I doing wrong here ?