kvandenhoute / sofplicator

The Sophisticated Replicator
1 stars 0 forks source link

Create scheduled jobs #13

Open stgrace opened 1 year ago

stgrace commented 1 year ago

Ability to create scheduled jobs

kvandenhoute commented 1 year ago

Do we actually want that? Why not just cronjobs that launch replication jobs?

stgrace commented 1 year ago

Maybe, not sure how we would handle different registries with regex etc for our purpose of scheduled jobs. Think it might create a lot of custom code in the job logic that might not need to be in there, but not sure

kvandenhoute commented 1 year ago

I think handling the regex should be part of the job logic. The sofplicator api should just hand over the list: [ { name: somecontainer, tag: "1..?..?"}, ... ] and the sofplicator job should be able to handle that. Whether the sofplicator api or a cronjob launches the job, that shouldn't matter.

If there's a cronjob for each different registry, I think that would not introduce too much complexity in the job code.