Run a job at a specific time/ CRON job

Hi everyone,

Is there a way to run a job at a specific timestamp or a CRON job?

I was wondering if we could create a script in Lua/Python that creates jobs and only executes them at the time we provide, just like a CRON job.

Any help on this is super appreciated!



I guess you are looking for the sched module in Python. This module should be compatible with Python plugins for Orthanc.

Kind Regards,

1 Like

I think you are referring to running Orthanc jobs in your post, but this is also helpful for running DB backups and other things that might not be directly related to Orthanc but part of your Docker Package.

You actually can create a docker container to run CRON jobs, although the Python method that Sebastian mentions might be better in some cases.

There is a reference here about using Docker for that:

I have used that sometimes and it works pretty well if it is on the same Docker Network as your other containers (i.e. Postgres and MySQL, etc.) because it can also perform DB backups without needing to rely on the host system setup, and it keeps everything still pretty much isolated to the Docker package and network.


1 Like