This note is to let you know about a couple of additions to the scheduler: Group Repeats, and Repeat All Jobs. They were recently added to the latest software, so should be available in the nightly releases soon. They will be a part of the next release (3.6.6). As always, feedback is welcome.
Group Repeats (only available with the Greedy scheduling algorithm)
This new feature allows you to run two or more Scheduler jobs at roughly the same priority, such that if they were both runnable, they would progress at roughly the same rate. This may be applicable, for example, to jobs imaging multiple tiles in a mosaic, but is generally applicable to any set of jobs.
Normally the (Greedy) scheduler's job priority is set by the row a job is listed on in the Scheduler's job table. Jobs on rows closer to the top run with higher priority than jobs lower down. Thus, if a job on row 2 (Job2) uses
Repeat Until Terminated, and that job's running constraints are satisfied, a lower down job (e.g. Job3) will not be scheduled to run.
If you wish to alternate jobs, you can now assign each of the jobs the same group name, and give the jobs one of the repeating finish conditions (e.g. Repeat for N times, or Repeat Until Terminated). With that setup, jobs in the same group will cede to each other if they have completed more 'Repeat Iterations' than the other job. So, if Job2 with group "MyGroup" completes its 2nd iteration, and Job3 with the same group name has only completed 0 or 1 iterations, when the time comes to schedule Job2, Job3 will run instead.
Practically speaking, imagine you had a 6-panel mosaic you wanted to alternate. You might give all of those jobs the same group name, and make them all e.g. "Repeat for 5 times". Then, they would run in lock-step. The cadence of job switching would be controlled by the length of the sequence file assigned to each of those jobs. You wouldn't want to make the cadence too short (e.g. capturing one 2-minute image), as there is overhead in switching jobs. For instance, starting jobs may involved aligning, starting guiding, and even focusing.
Adding group names to all jobs in a mosaic is now an option in the Mosaic Planner.
The arrow below points to the new group name input box.
Repeat All Jobs (only available without Remember Job Progress)
Wolfgang recently added a checkbox and number input right below the Scheduler jobs table that allows you to repeat the entire schedule N times. This can be used to alternate a few jobs. You can just list the jobs on the scheduler, set it to repeat N times, and the jobs will repeat. However, this change is incompatible with 'Remember job progress (below) and unavailable if Remember job progress is checked. (Note: Remember job progress is recommended.)
Remember job progress
This is not a new feature, but I wanted to remind folks why it is there, and that it's recommended for typical use--if you are saving your image files to the computer where KStars/Ekos is running (which is often the case). When this box is checked and a job is running, the Scheduler looks at the job's images already captured on disk, and doesn't re-capture the ones that are already there. The benefit is that if a job is restarted, or if multiple jobs are being run together, stopping and starting when they are runnable, then jobs re-start right where they left off. If Remember job progress is unchecked, jobs would restart from the start of the sequence specification each time, which probably isn't what you want. Unfortunately, if the images are not stored on the same computer that Ekos is running on, then this feature doesn't work and the jobs restart from their beginning.
A possibly confusing side-effect of Remember job progress is that if you've run a job using the (default) Sequence Completion finish condition, and it has captured all its images, and now you want to run the job again, the Scheduler won't schedule the job because it believes that all the images have already been captured. You'd either need to move those images elsewhere on disk, or change the finish condition to Repeat for N Times, or Repeat Until Terminated.