First of all, Temporal is a great platform and I would like to thank you all for being active and answering all my questions and helping me solve my issues.
My issue has something to do with CRON schedule not working properly on our staging and prod environment. While locally, it works as expected.
When I check locally, using the temporal console (http://localhost:8088/), I can see that the Workflow runs every 10 minutes meanwhile it runs every minute on our staging and prod.
Is this an issue or am I missing something on my setup? Thanks in advance
Are your staging and prod running the same server version (which version is it)?
Server also supports robfig cron lib and you can set cron schedule to a duration, for example
.setCronSchedule(“@every 10m”)
test that out to see if it makes a difference. I believe this has to do with step values (“/”) in your cron def.
Can you check if on staging this workflow execution with AutoScalingWorkflow-ID id was already running before you try to start it in your test? Your client call to start it again with same workflow id should fail (you can only have one execution running with same id at a time).
If you are running on server version 1.16.0 + try setting in your workflow options:
Updated and used that setting. The problem was the old workflows was still running so I changed the name of the task queue and updated the workflow id. Looks like the CRON job works as expected now. I’m just wondering if there’s a tctl command to clear the old workflows. I tried tctl admin wf delete but it didn’t remove the old workflows