You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow individual jobs to report an unchanged outcome
If all of a job's dependencies reported unchanged, then skip execution of that job and set its outcome to unchanged as well
For part 1, create a new enum:
#[non_exhaustive]// so we can add more outcomes in the futurepubenumOutcome{Success,Unchanged,}
Change return type of Job::run to Result<Outcome, Self::Error>
Update JobState::Succeeded variant to include outcome value
For part 2, update Schedule::mark_complete to accept the full Result of job run and store job outcome appropriately. Also add logic to recursively set unchanged outcome for dependent jobs
The text was updated successfully, but these errors were encountered:
This feature has two parts:
For part 1, create a new enum:
Change return type of
Job::run
toResult<Outcome, Self::Error>
Update
JobState::Succeeded
variant to include outcome valueFor part 2, update
Schedule::mark_complete
to accept the fullResult
of job run and store job outcome appropriately. Also add logic to recursively set unchanged outcome for dependent jobsThe text was updated successfully, but these errors were encountered: