Scheduled task execution windows

Description

As per the discussion from Slack:

It would be great to have an optional configuration option for task manager tasks named "executionWindow".
If used this would allow to restrict the execution of specific tasks to a specific time frame, e.g. only running nightly.
Current behaviour might lead to not wanted results in case of e.g. nightly tasks that are supposed to run once a day during night time but defo not during the day. If for whatever reason (app down, other task running, etc.) the execution of one nightly task did not happen and is delayed, then it would now execute at the closest possible time, e.g. was scheduled for 2am, but might run at 9am for whatever reason.

If introducing an exectutionWindow this would basically be a restriction. In the moment a task would run due to the stored "next-run" timestamp, it will only run if the current time is within the execution window, otherwise it will reschedule to the next execution window time frame.

Status

Assignee

Unassigned

Reporter

Jan Jannek

Labels

None

Accepted

None

Priority

Medium
Configure