Separate out the CRONs service away from the UOP core #1214
Replies: 5 comments
-
|
I think that we should let facilities set up custom jobs dynamically. Ideally, the CRON service would be a generic scheduler that will start jobs at given frequencies. A new job can be plugged in to the service by implementing an abstract job interface, something like this: interface Job { Some jobs can be pre-defined and stored in the core repo while others will be implemented on site and not made public. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Minutes from meeting with Yoga. Yufan presented a K8S solution using namespaces and Kubernetes native CronJobs resource and to allow cronjobs to be extracted out and placed into a separate repository. The problems that we have with cron jobs is we do not have control over these cronjobs; such as no knowing how many times these cron jobs are run, audits such as how long they have, how the order of the cron jobs should be queued to prevent contrary clashing jobs occurring synchronously. Moving forward is to start another discussion to talk about how to resolves these problems that we have identified and agreed to be most impactful. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is regarding a possible idea, we have currently had two meeting one internally with submission in ICD, and one with ESS (Jekabs.K, Yoganandan.P). Both parties so far are interested in this idea.
Currently we have all CRONs jobs stored in the source code of UOP (user-offfice-project)/UOC (user-office-core). This we believe can be improved, as it is currently residing as a monolith.
There is a archived repo User-office-crons (UOCrons): https://github.com/UserOfficeProject/user-office-cron
We want to abstract this out of UOP/UOC and make it importable and then configurable.
Of which we want to be similar to user-office-factory:
https://github.com/UserOfficeProject/user-office-factory
These jobs may call some backend endpoint, connect directly to the database, we want to be able to spy on the jobs.
Ideas
Possible problem
Beta Was this translation helpful? Give feedback.
All reactions