@@ -390,7 +390,7 @@ impl<RT: Runtime> CronJobExecutor<RT> {
390390 let execution_time_f64 = execution_time. as_secs_f64 ( ) ;
391391 let truncated_log_lines = self . truncate_log_lines ( outcome. log_lines . clone ( ) ) ;
392392
393- let mut model = CronModel :: new ( & mut tx, ComponentId :: Root ) ;
393+ let mut model = CronModel :: new ( & mut tx, ComponentId :: TODO ( ) ) ;
394394
395395 if let Ok ( ref result) = outcome. result {
396396 let truncated_result = self . truncate_result ( result. clone ( ) ) ;
@@ -435,7 +435,7 @@ impl<RT: Runtime> CronJobExecutor<RT> {
435435 // Continue without updating since the job state has changed
436436 return Ok ( ( ) ) ;
437437 } ;
438- let mut model = CronModel :: new ( & mut tx, ComponentId :: Root ) ;
438+ let mut model = CronModel :: new ( & mut tx, ComponentId :: TODO ( ) ) ;
439439 let status = CronJobStatus :: Err ( e. to_string ( ) ) ;
440440 model
441441 . insert_cron_job_log ( & job, status, truncated_log_lines, execution_time_f64)
@@ -482,7 +482,7 @@ impl<RT: Runtime> CronJobExecutor<RT> {
482482 // Set state to in progress
483483 let mut updated_job = job. clone ( ) ;
484484 updated_job. state = CronJobState :: InProgress ;
485- CronModel :: new ( & mut tx, ComponentId :: Root )
485+ CronModel :: new ( & mut tx, ComponentId :: TODO ( ) )
486486 . update_job_state ( job_id, updated_job. clone ( ) )
487487 . await ?;
488488 self . database
@@ -560,7 +560,7 @@ impl<RT: Runtime> CronJobExecutor<RT> {
560560 // guess the correct behavior here is to store the executionId in the state so
561561 // we can log correctly here.
562562 let context = ExecutionContext :: new ( request_id, & caller) ;
563- let mut model = CronModel :: new ( & mut tx, ComponentId :: Root ) ;
563+ let mut model = CronModel :: new ( & mut tx, ComponentId :: TODO ( ) ) ;
564564 model
565565 . insert_cron_job_log ( & job, status, log_lines, 0.0 )
566566 . await ?;
@@ -638,7 +638,7 @@ impl<RT: Runtime> CronJobExecutor<RT> {
638638 // Continue without updating since the job state has changed
639639 return Ok ( ( ) ) ;
640640 } ;
641- let mut model = CronModel :: new ( & mut tx, ComponentId :: Root ) ;
641+ let mut model = CronModel :: new ( & mut tx, ComponentId :: TODO ( ) ) ;
642642 model
643643 . insert_cron_job_log ( expected_state, status, log_lines, execution_time)
644644 . await ?;
0 commit comments