Scheduler end time calculation issue
Hy Murveit
murveit at gmail.com
Wed Aug 18 23:31:34 BST 2021
I took a quick look, and it seems that the "End Time" field in the
scheduler job table displays the time the job "would end" if there were no
altitude or twilight or other constraints. It does NOT display the time the
job will be suspended because of altitude, twilight, etc.
Looking at the tooltip for that field, it says: "A warning symbol indicates
the altitude at completion may cause the job to abort before completion",
which further supports my interpretation.
If you run your job, I'll bet it will get suspended at twilight.
Your job does show a minor bug, in that it should have gotten the "warning
symbol", and your picture shows that it doesn't.
It seems that warning symbol is only implemented for the minAltitude
parameter, not for twilight, not for artificial horizon.
See line 566 in schedulerjob.cpp:
https://invent.kde.org/education/kstars/-/blob/master/kstars/ekos/scheduler/schedulerjob.cpp#L566
Instead of saying "altitudeAtStartup < minAltitude" there would need to be
more sophisticated processing that looks at twilight, artificial horizon
and minAltitude. I'm guessing that in your log file, you can find the
message generated in this line
https://invent.kde.org/education/kstars/-/blob/master/kstars/ekos/scheduler/scheduler.cpp#L2466
that says it will be interrupted due to twilight. It doesn't look like we
do that computation and log message for altitude.
Hy
On Wed, Aug 18, 2021 at 2:27 PM Jasem Mutlaq <mutlaqja at ikarustech.com>
wrote:
> Hello everyone,
>
> I scheduled a job today but the end time was set at 5:20 AM whereas
> the twilight is 3:54 AM. What's the reason behind this discrepancy?
>
> --
> Best Regards,
> Jasem Mutlaq
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20210818/79d4b6ce/attachment.htm>
More information about the Kstars-devel
mailing list