Bug 398415 - Repeated Scheduler jobs are aborted before they actually repeat
Summary: Repeated Scheduler jobs are aborted before they actually repeat
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-09 09:26 UTC by TallFurryMan
Modified: 2018-10-04 22:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TallFurryMan 2018-09-09 09:26:35 UTC
When a repeated Scheduler job finishes a batch, it shifts to aborted state before effectively repeating.

Steps to reproduce:
- Create a Scheduler job that has repeats, and starts now,
- Run the Scheduler,
- Observe as job finishes a batch, aborts indicating its startup time is in the past, then restart for the next batch.

This situation is triggered by the startup time which is calculated at the first batch, and is re-considered when checking for the new batch. START_ASAP jobs get configured as START_AT when they are evaluated. When a batch finishes, jobs go through state COMPLETE so that they re-evaluate before being repeated, and the re-evaluation doesn't consider the original startup configuration.

The same situation occurs with real START_AT jobs, but those by design need to really start at the time they are planned, not at another time.

Thus in order to avoid regressions, this issue should probably not be fixed by considering START_AT/START_ASAP original startup configurations, but by checking if a repeat is remaining when finding a job that was configured to start too far in the past.
Comment 1 TallFurryMan 2018-09-14 06:27:26 UTC
Should be fixed by https://phabricator.kde.org/D15388