Autolab icon indicating copy to clipboard operation
Autolab copied to clipboard

scheduler job disable

Open cg2v opened this issue 7 years ago • 4 comments

scheduler jobs should have an enable checkbox, so they can be disabled without being deleted or setting a bogus next time.

A "don't run after" time value may also be useful

cg2v avatar Jan 27 '18 02:01 cg2v

May I understand which page / feature is this referring to?

victorhuangwq avatar Jul 10 '20 13:07 victorhuangwq

this is https://autolab-dev.andrew.cmu.edu/courses/compserv-mock/schedulers/new (or edit)

cg2v avatar Nov 29 '21 19:11 cg2v

The issue is that things like bomblab and attacklab are set up the 3rd week of the semester, and then run forever, until I manually remove them from the database the next semester when I find 6 copies of bomblabUpdater running,

cg2v avatar Nov 29 '21 19:11 cg2v

It would also be nice if scheduler jobs automatically disable themselves if they throw (repeated?) exceptions.

cg2v avatar May 24 '22 15:05 cg2v

A disabled checkbox and "until" field sound good to me -- I'll work on adding them.

The auto disable feature doesn't seem worth implementing for now, since instructors could wrap their code in a try-catch block. There's also the issue of picking a good threshold, and the complexity of making it an opt-in feature. While it would be simple enough to disable a scheduler immediately inside the rescue blocks of run_scheduler, I feel that it might not always be desirable behavior, especially if the Exception occurs only rarely, and we do not want to disable the scheduler just for it.

damianhxy avatar Jun 03 '23 07:06 damianhxy