[jobs-api] refactor before moving jobs load to backend
- add
to_jobfunction toNewJobmodel that converts aNewJobinstance toJobinstance. - create
tjf/quota.pyfile with a newQuotamodel implementation to be used inruntime.pyinstead
of usingtjf/api/models.pyQuota model. - refactor out
get_cron_unique_seedinruntime.py. - refactor
tjf/api/jobs.pyandtjf/api/quota.pyto 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