#1394·cadence

Fix CronSchedule with workflow return ContinueAsNew

Author: yiminc-zzCreated Jan 16, 2019Updated Aug 31, 2026
Labelstriage/needs-info

If workflow starts with CronSchedule and workflow also return ContinueAsNew, the behavior might be confusing. Assume workflow take string as input, and the initial start has input "init-input". Then workflow return ContinueAsNew and the input for the new run is set to "new-input". The new run will be started immediately. If the new run does not return new ContinueAsNew, then the run will stop, and server will schedule next cron run with delayed start time based on the cron schedule. However, the new cron run will have "new-input" as input.

Source: cadence-workflow/cadence