Skip to content

lister: Add checks on expected scheduler's output tasks

The functionality need is to ensure we have the required task types within the scheduler. It must be done early in order to prevent the lister to do computations (and hitting external apis) and then fail to insert the computed tasks if the scheduler is not correctly setup-ed.

Let's make it fail as soon as possible.

I'm not sure where to implement the check function call though. Within the:

  • lister's constructor
  • lister's task (the one creating the lister)
  • somewhere else?

Test Plan

tox


Migrated from D2237 (view on Phabricator)

Merge request reports