[Feature Request] Automatically only launch tasks during certain hours. #605
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Overview
Anecdotally, crowdsourcing quality is often better on certain hours of the day. It would be nice to have some method to only launch tasks during these hours.
Implementation
In either case, the core functionality for this lives in the
TaskLauncher
.Simple - for use with
max_num_concurrent_units
This implementation is simple, we just don't launch additional tasks outside the specified hours. We can do this by sleeping the additional-launching thread outside of working hours. It could go here:
Mephisto/mephisto/operations/task_launcher.py
Line 179 in bc3526f
If we're outside of set hours, sleep until the next approved hour.
Complex - actively take down tasks outside hours
This implementation is less clear, but may be desired. The goal here would be to expire all of the units that are still alive outside of working hours, and then relaunch them later. This would likely involve creating new assignments that are copies of incomplete ones, and then relaunching those. If this is necessary, can comment and I'll scope further.
The text was updated successfully, but these errors were encountered: