@@ -39,7 +39,7 @@ public class SchedulerService implements AutoCloseable {
3939 private static final Logger logger = LoggerFactory .getLogger (SchedulerService .class );
4040
4141 record AnnotatedScheduledWorkflow (
42- RegisteredWorkflow workflow , Cron cron , String queue , boolean ignoreMissed ) {}
42+ RegisteredWorkflow workflow , Cron cron , String queue , boolean automaticBackfill ) {}
4343
4444 public static final CronParser CRON_PARSER =
4545 new CronParser (CronDefinitionBuilder .instanceDefinitionFor (CronType .SPRING53 ));
@@ -374,7 +374,7 @@ private void cancelWorkflowSchedule(String scheduleId) {
374374
375375 private static ZonedDateTime getLastTime (
376376 DBOSExecutor dbosExecutor , AnnotatedScheduledWorkflow swf ) {
377- if (! swf .ignoreMissed ()) {
377+ if (swf .automaticBackfill ()) {
378378 var state =
379379 dbosExecutor .getExternalState (
380380 "DBOS.SchedulerService" , swf .workflow ().fullyQualifiedName (), "lastTime" );
@@ -387,7 +387,7 @@ private static ZonedDateTime getLastTime(
387387
388388 private static ZonedDateTime setLastTime (
389389 DBOSExecutor dbosExecutor , AnnotatedScheduledWorkflow swf , ZonedDateTime lastTime ) {
390- if (swf .ignoreMissed ()) {
390+ if (! swf .automaticBackfill ()) {
391391 return ZonedDateTime .now ();
392392 }
393393
@@ -433,7 +433,8 @@ private List<AnnotatedScheduledWorkflow> getAnnotatedWorkflowSchedules() {
433433
434434 try {
435435 var cron = CRON_PARSER .parse (schedTag .cron ()).validate ();
436- return new AnnotatedScheduledWorkflow (wf , cron , queueName , schedTag .ignoreMissed ());
436+ return new AnnotatedScheduledWorkflow (
437+ wf , cron , queueName , schedTag .automaticBackfill ());
437438 } catch (Exception e ) {
438439 logger .error (
439440 "Annotated workflow schedule {} has invalid cron expression {}" ,
0 commit comments