Skip to content

[jobs-api] refactor before moving jobs load to backend

Raymond Ndibe requested to merge more_refactor into main
  • add to_job function to NewJob model that converts a NewJob instance to Job instance.
  • create tjf/quota.py file with a new Quota model implementation to be used in runtime.py instead
    of using tjf/api/models.py Quota model.
  • refactor out get_cron_unique_seed in runtime.py.
  • refactor tjf/api/jobs.py and tjf/api/quota.py to make use of the new changes to models.py
  • fix tests

Bug: T366209
Bug: T359804
Signed-off-by: Ndibe Raymond Olisaemeka rolisaemeka-ctr@wikimedia.org

Edited by Raymond Ndibe

Merge request reports