<div dir="ltr">It's do-able, of course. It's not a one-liner. <div>Would require code to estimate the job-abort time, similar to running evaluateJob for a number of simulated future minutes.</div><div><br></div><div>IMHO, we should probably re-think the scheduler table. </div><div>It's not really that useful to give an "idealized" end-time with a warning, since we know for sure it won't end then.</div><div>We probably should give the known interrupt time (as you were expecting) with some kind of flag that indicates the job won't fully complete at that time. Perhaps the thinking was that the job would pick up "tomorrow night"? Should we indicate when it will finish tomorrow?</div><div>I'd vote for displaying tonight's interrupt time.</div><div><br></div><div>Hy</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 18, 2021 at 10:20 PM Jasem Mutlaq <<a href="mailto:mutlaqja@ikarustech.com">mutlaqja@ikarustech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks for looking into this Hy, it makes sense. Is the fix easy for<br>
the warning symbol?<br>
<br>
--<br>
Best Regards,<br>
Jasem Mutlaq<br>
<br>
<br>
On Thu, Aug 19, 2021 at 1:32 AM Hy Murveit <<a href="mailto:murveit@gmail.com" target="_blank">murveit@gmail.com</a>> wrote:<br>
><br>
> 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.<br>
><br>
> 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.<br>
><br>
> If you run your job, I'll bet it will get suspended at twilight.<br>
><br>
> Your job does show a minor bug, in that it should have gotten the "warning symbol", and your picture shows that it doesn't.<br>
><br>
> It seems that warning symbol is only implemented for the minAltitude parameter, not for twilight, not for artificial horizon.<br>
> See line 566 in schedulerjob.cpp:<br>
> <a href="https://invent.kde.org/education/kstars/-/blob/master/kstars/ekos/scheduler/schedulerjob.cpp#L566" rel="noreferrer" target="_blank">https://invent.kde.org/education/kstars/-/blob/master/kstars/ekos/scheduler/schedulerjob.cpp#L566</a><br>
> 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<br>
> <a href="https://invent.kde.org/education/kstars/-/blob/master/kstars/ekos/scheduler/scheduler.cpp#L2466" rel="noreferrer" target="_blank">https://invent.kde.org/education/kstars/-/blob/master/kstars/ekos/scheduler/scheduler.cpp#L2466</a><br>
> that says it will be interrupted due to twilight.  It doesn't look like we do that computation and log message for altitude.<br>
><br>
> Hy<br>
><br>
><br>
> On Wed, Aug 18, 2021 at 2:27 PM Jasem Mutlaq <<a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a>> wrote:<br>
>><br>
>> Hello everyone,<br>
>><br>
>> I scheduled a job today but the end time was set at 5:20 AM whereas<br>
>> the twilight is 3:54 AM. What's the reason behind this discrepancy?<br>
>><br>
>> --<br>
>> Best Regards,<br>
>> Jasem Mutlaq<br>
</blockquote></div>