×

INDI Library v1.8.0 is Released (27 Jul 2019)

INDI Library v1.8.0 is mostly a maintenance release to fix a few bugs in several drivers.

Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

  • Posts: 932
  • Karma: 6
  • Thank you received: 239

Potential bug in the Scheduler: mount doesn't get parked when guiding aborted was created by wvreeven

Last night I set up one of my imaging setups and started a long job (with different filters) on M 27. Yes it is full moon but that doesn't stop me from testing my gear. Anyway, at some point M 27 disappeared behind my home and the guide cam failed to acquire a star to guide on. This aborted the Scheduler job (and basically meant I got 0 images with one of the five filters but that was to be expected). When I got up this morning I noticed that the mount had not been parked despite the condition for it (dawn had started) already passed.

I'll check the logs tonight when I get home from work but I wanted to open this post here in case anyone else has encountered a similar situation.


Wouter
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
1 month 1 week ago #41030

Please Log in or Create an account to join the conversation.

  • Posts: 932
  • Karma: 6
  • Thank you received: 239

Replied by wvreeven on topic Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

Here are the logs. At 06:17:09 the Scheduler reports that the guider state is "Idle". However, it must be something else. The scheduled jobs were support to end around 05:00 but they didn't... Around 04:27 the scheduler is aborting the last job and then it doesn't park the mount. See the attached log and esq files.
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
The following user(s) said Thank You: dokeeffe
1 month 1 week ago #41052
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 268
  • Karma: 5
  • Thank you received: 82

Replied by sterne-jaeger on topic Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

Taking a closer look into the logs explains what happens:
[2019-07-15T04:27:02.108 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "Only aborted jobs left in the scheduler queue, rescheduling those."
...
[2019-07-15T04:27:01.043 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "Job 'M 27' is now approaching astronomical twilight rise limit at Mon Jul 15 04:27:00 2019 (30 minutes safety margin), marking aborted."
[2019-07-15T04:27:03.044 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "Sleeping until observation job M 27 is ready at Mon Jul 15 23:45:00 2019..."
[2019-07-15T04:27:03.052 CEST INFO ][ org.kde.kstars.ekos.scheduler] - "Warning: Job 'M 27' is 19h 17m 57s away from now, you may want to enable Preemptive Shutdown."
Briefly: enable "Preemptive Shutdown" in the EKOS/Scheduler options.

This is exactly a situation that Eric ( @TallFurryMan ) and I are discussing in this enhancement I am working on. From my perspective, setting a job that hits its limits to state "aborted" is not optimal. But there are good arguments to do it, if you want to implement multi-day schedules.

What happens? As soon as all jobs are completed or aborted, the Sceduler re-schedules all aborted jobs. In your case, the M27 job is sent to sleep until next evening.

- Wolfgang
The following user(s) said Thank You: TallFurryMan
1 month 6 days ago #41097

Please Log in or Create an account to join the conversation.

Replied by knro on topic Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

Shouldn't such jobs trigger PARK-WAIT stage and park the mount? That was how it was intended, so why is park wait skipped now?
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
1 month 6 days ago #41098

Please Log in or Create an account to join the conversation.

  • Posts: 366
  • Thank you received: 64

Replied by dokeeffe on topic Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

I would prefer the old behavior where if dawn approached then it initiates the shutdown
Celestron CPC1100 Atik 383L
HP8300 Elite i5 running Xubuntu, Indi, Kstars & Ekos
Roll off roof observatory
Battling Irish weather
github.com/dokeeffe
twitter.com/BallyhouraStars
1 month 6 days ago #41104

Please Log in or Create an account to join the conversation.

  • Posts: 268
  • Karma: 5
  • Thank you received: 82

Replied by sterne-jaeger on topic Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

As the log shows, the Preemptive Shutdown option is not selected.

@Wouter: Please select the option, then you will have the desired behavior.
The following user(s) said Thank You: dokeeffe, wvreeven
1 month 6 days ago #41105

Please Log in or Create an account to join the conversation.

  • Posts: 932
  • Karma: 6
  • Thank you received: 239

Replied by wvreeven on topic Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

OK I didn't expect that that was necessary since I did check the Park Mount option in the Scheduler. I guess this means that the Park Mount option only is executed once all jobs have finished which seems counter-intuitive to me. But I'll make sure that that option is also checked next time. Thanks!
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
1 month 5 days ago #41118

Please Log in or Create an account to join the conversation.

  • Posts: 728
  • Karma: 13
  • Thank you received: 229

Replied by TallFurryMan on topic Re:Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

Scheduler will try (hopefully) hard to image your targets, even if that means scheduling observations over multiple nights. So yes, preemptive shutdown is the solution. Do you think it is a misnomer and we should fix that? There's also a warning in the scheduler, but that warning does only appear when the sleep situation occurs, so not very helpful.

-Eric
HEQ5-Pro - Atik 314E - Orion ED80T - DMK21 on Orion 50mm
DIY 3D-printed Moonlite and FWheel RGB/LPR
KStars and indiserver on two Atom 1.6GHz 1GB RAM Linux, VPN remote access
The following user(s) said Thank You: wvreeven
1 month 5 days ago #41167

Please Log in or Create an account to join the conversation.

  • Posts: 728
  • Karma: 13
  • Thank you received: 229

Replied by TallFurryMan on topic Re:Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

Also I think we should enforce the completion time of scheduled jobs. If a job gets late, it should be allowed to continue for some time, but at some point we should abort it. That indeed poses the question of when to resume it, and that is one of the points in the exchange mentioned.

-Eric
HEQ5-Pro - Atik 314E - Orion ED80T - DMK21 on Orion 50mm
DIY 3D-printed Moonlite and FWheel RGB/LPR
KStars and indiserver on two Atom 1.6GHz 1GB RAM Linux, VPN remote access
1 month 5 days ago #41168

Please Log in or Create an account to join the conversation.

  • Posts: 932
  • Karma: 6
  • Thank you received: 239

Replied by wvreeven on topic Re:Potential bug in the Scheduler: mount doesn't get parked when guiding aborted

TallFurryMan wrote: Scheduler will try (hopefully) hard to image your targets, even if that means scheduling observations over multiple nights. So yes, preemptive shutdown is the solution. Do you think it is a misnomer and we should fix that? There's also a warning in the scheduler, but that warning does only appear when the sleep situation occurs, so not very helpful.


No, I don't think it's a misnomer. Despite my extensive use of Ekos I still get confused when certain configuration options are in the screen itself, some are in the KStars preferences and some are hidden away in a popup that can be accessed by going to the corresponding tab in Ekos and clicking on an Options button. Perhaps the Ekos configuration options in the KStars preferences should be taken away from there and merged into Ekos, either by adding popup accessible via an Options button or modifying an existing popup. Then at least all configuration options are directly accessible from within Ekos.

Anyway, if I encounter an unexpected situation again then I will go over all configuration settings (including the ones in the KStars preferences) to see if any may solve the situation.


Wouter
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
The following user(s) said Thank You: TallFurryMan
1 month 4 days ago #41170

Please Log in or Create an account to join the conversation.

  • Posts: 728
  • Karma: 13
  • Thank you received: 229

Replied by TallFurryMan on topic Re:Re:Potential bug in the Scheduler: mount doesn't get parked when guiding abor

Thanks, your report is helpful.

-Eric
HEQ5-Pro - Atik 314E - Orion ED80T - DMK21 on Orion 50mm
DIY 3D-printed Moonlite and FWheel RGB/LPR
KStars and indiserver on two Atom 1.6GHz 1GB RAM Linux, VPN remote access
The following user(s) said Thank You: wvreeven
1 month 4 days ago #41196

Please Log in or Create an account to join the conversation.

  • Posts: 932
  • Karma: 6
  • Thank you received: 239

Replied by wvreeven on topic Re:Re:Potential bug in the Scheduler: mount doesn't get parked when guiding abor

And thank all of you for your continuing efforts to improve this already very fine piece of software!


Wouter
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
The following user(s) said Thank You: knro
1 month 4 days ago #41198

Please Log in or Create an account to join the conversation.

Time to create page: 0.232 seconds