Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any APIs to dynamically add/remove jobs? #310

Open
armond-avanes opened this issue Dec 27, 2024 · 2 comments
Open

Any APIs to dynamically add/remove jobs? #310

armond-avanes opened this issue Dec 27, 2024 · 2 comments

Comments

@armond-avanes
Copy link

Use Case: I have automated the entire process of installation/uninstallation of my docker containers. When I install/uninstall a docker container, I would like to be able to add/remove its related background jobs (scheduled backups, etc) via APIs without touching Ofelia config file manually.

Docker labels are not an option here because I'm relying on some other docker containers [already running] to be triggered for doing the actual job and I don't want to touch those ones.

I was wondering if there were any such APIs for this purpose, or could be added in future. Thank you.

@developer992
Copy link

developer992 commented Jan 27, 2025

Sub question for this:

INI-style config

Run with ofelia daemon --config=/path/to/config.ini

Does Ofelia have "hot-reload" ... if some external program writes/changes this file, will ofelia pick up the changes or does it need restart?

i'm thinking, if I create some django application, that would store ofelia configs to a database and offer easy admin for job scheduling. And then also write changes to this file which would be on a shared volume between django and ofelia containers. Would ofelia be able to detect the changes ?

@taraspos
Copy link
Collaborator

taraspos commented Feb 3, 2025

Hi, no, Ofelia doesn't APIs for adding/removing job. However you can find discussion regarding the live handling of docker labels here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants