You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
I'm quite new to Docker and I'm trying to schedule tasks using Chadburn.
I just need to run a Python script once a day (but for testing purpose I'm scheduling it every 5s)
My config.ini looks like
; Chaburn configuration file
; see documentation available at
; https://github.com/maietta/chadburn/
; https://github.com/maietta/chadburn/blob/main/docs/jobs.md
[job-run "job-executed-on-new-container"]
schedule = @every 5s
image = cleanup_db_data-run_script
command = python ./script.py
network = mynetwork
when there's an error (bad connection to DB for example), containers with random name
are created, exited and are still present.
Isn't there a way to ensure that these containers be removed and their log be transfered to Chadburn container?
Kind regards
PS : I also wonder if there is a way to keep same name for a job.
I tried to use container field but it doesn't seem to be for that purpose but for running an existing container.
for example a field such as
container_name = job_cleanup_db_data-run_script
could created containers such as job_cleanup_db_data-run_script-1, job_cleanup_db_data-run_script-2, job_cleanup_db_data-run_script-3 ...
This discussion was converted from issue #69 on March 30, 2024 00:07.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm quite new to Docker and I'm trying to schedule tasks using Chadburn.
I just need to run a Python script once a day (but for testing purpose I'm scheduling it every 5s)
My
config.ini
looks likewhen there's an error (bad connection to DB for example), containers with random name
are created, exited and are still present.
Isn't there a way to ensure that these containers be removed and their log be transfered to Chadburn container?
Kind regards
PS : I also wonder if there is a way to keep same name for a job.
I tried to use
container
field but it doesn't seem to be for that purpose but for running an existing container.for example a field such as
could created containers such as
job_cleanup_db_data-run_script-1
,job_cleanup_db_data-run_script-2
,job_cleanup_db_data-run_script-3
...Beta Was this translation helpful? Give feedback.
All reactions