Build the list of all available tasks and implement is_valid_task_name
Provide a classmethod to find all installed Tasks and return the Task class.
For this issue, define the code in Tasks that both worker and server can use to generate the list. Adding more Tasks later will automatically update the data.
Consider replacing is_valid_task_name function with a classmethod in Task.
Edited by Raphaël Hertzog