Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/ha scheduler not triggering missed executions due to not meeting …
…the threshold (#612) * Check correctly if task threshold was met It was incorrectly considered to be met in case the remaining time till the next execution was less than the threshold. Instead, it has to be greater, since that would mean, that the next execution is taking long enough to not be triggering a double execution Thus, the current logic is not, as intended, preventing possible double executions and instead is making sure to only execute missed tasks in case it will lead to double executions... * Always trigger missed executions The idea to have a threshold to prevent double executions in case the next scheduled execution isn't too far in the future doesn't really work with big intervals (e.g. in the days range). For such cases, multiple days left for the next executions could be considered to cause double executions. Decreasing the threshold doesn't really work since then it wouldn't really work for low intervals. Instead, it makes more sense to just allow possible double executions and to just live with it. In case it would be a problem for a specific task, the task should handle this issue itself.
- Loading branch information