Document and tasks module and add callback hook for tasks.

  • This commit adds a lot of comments and docs to the tasks module so that we have clearer picture of what is happening.

  • Add a callback hook for tasks to make sure that we log any of the failures that happen in async tasks.

  • Add a new setting HYPERKIITY_DISABLE_SINGLETON_TASKS to not use locking feature that makes sure that if there is a task already in the queue, not to schedule another one unless it came HYPERKITTY_TASK_LOCK_TIMEOUT minutes after and the original one is still unprocessed.

    I am not sure what exactly does this achieve, since if the task is still in the queue, it will process the results for the 2nd task as well and 2nd one will basically be a repeated task, unless, there is a new email to the list between the runs of the two tasks.

Edited by Abhilash Raj

Merge request reports

Loading