Cron jobs
I have a main app in Django and a separate service that downloads events from the main app and syncs them with Google Calendar. I want this synchronization to happen every 5 minutes. I'm considering whether to use cron jobs or to run the service continuously with some kind of scheduler (e.g., Celery or APScheduler) - I guess the cron jobs will use less resources?
I'm testing cron jobs right now, and it starts main.py, which currently just prints 'main.py'.
Does the log 'container event container died' mean that the container closed after running the whole code? But why first log is 'contrainer event container died' then my print?
3 Replies
Project ID:
N/A
N/A
if you run your code locally, is it persisting or instantly dying when you run it?
this looks like expected behavior (minus the log order).
Your container does exactly what the code you provided intends it to do.