Skip to content

refactor JobManager methods for readability

luna requested to merge refactor/readable-jobs-interface into master
  1. spawn -> spawn_once, as it more clearly shows intent.

  2. args and kwargs are required to be kwargs, but are optional, meaning tasks that don't need to pass them won't need to pass them.

  3. make spawn_once receive a function rather than a coroutine. would let us create future retry logic to this maybe

  4. add test for POST /api/delete_all as part of refactoring and finding out ways our suite wouldn't catch bugs

Merge request reports