<table><tr><td style="">wreissenberger planned changes to this revision.<br />wreissenberger added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D22446">View Revision</a></tr></table><br /><div><div><p>Many thanks for your comments. I will think about them and come back.</p></div></div><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D22446#inline-126560">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">scheduler.cpp:1431</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Here I tend to disagree. We have JOB_INVALID, JOB_ERROR and JOB_ABORTED.<br />
JOB_INVALID indicates a configuration error, and we cannot proceed with the job at all.<br />
JOB_ERROR indicates a fatal error during processing, and we cannot proceed with the job anymore.<br />
JOB_ABORTED indicates a transitory error during processing, and we should retry at some point.<br />
Based on these definitions, we should not re-evaluate JOB_ERROR.<br />
Now, I know that the enums are not properly ordered, but to me JOB_ERROR jobs should still be removed.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">I would agree if JOB_ERROR is only used when an error is non recoverable. But for example what error state should be set if a slew command fails? It is definitely recoverable, since sending the command again solves the problem. The same is true if e.g. we loose network connection.</p>

<p style="padding: 0; margin: 8px;">The problem is, that we do not have a JOB_FATAL state. For those, I absolutely agree, we should not try to restart. That's why I added the option to handle errors like aborts. I am quite sure that there are setups where restarting of errors is dangerous. But with my setting, its absolutely fine.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D22446#inline-126565">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">scheduler.cpp:1579</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I'm not sure about this block, it really gets in the way of the regular method of scheduling.<br />
It will conflict with the completion time of the aborted jobs.<br />
It will run a parallel conflict with whatever restriction makes the jobs aborted at some point.<br />
It will conflict with the preemptive shutdown option (unless you forbid a larger delay?).<br />
Eventually, forbid a delay larger than the lead time option?</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">This section simply extends the old predicate based to a loop so that it can take into account whether the "re-schedule errors" checkbox is selected. I needed to switch to a loop since the checkbox is not static.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D22446#inline-126566">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">scheduler.cpp:1602</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">OK, only if scheduling algorithm takes the presence of JOB_ABORTED into account.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Sorry, don't get the point.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D22446#inline-126568">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">scheduler.cpp:3165</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">This is a behavior change, but well, makes sense now.<br />
Note that currently, the completion date embeds both date and time.<br />
The completion date should be optional, so that multi-day schedules could be more easily programmed (I have a need for this).<br />
The interface is painful when rescheduling START_AT and COMPLETE_AT jobs, but not moving jobs should improve that.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Oops, multi-day schedules? That's tricky.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D22446#inline-126569">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">scheduler.cpp:3191</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I disagree: this job must be rescheduled to next observation time, thus JOB_ABORTED.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Maybe neither COMPLETE nor ABORTED. What about if we set it to EVALUATION?</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D22446#inline-126570">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">scheduler.cpp:3217</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I disagree: this job must be rescheduled to next observation time (albeit quite a far one!), thus JOB_ABORTED.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">see above on line 3191.</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22446">https://phabricator.kde.org/D22446</a></div></div><br /><div><strong>To: </strong>wreissenberger, mutlaqja, TallFurryMan<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>