Skip to content

Instantly share code, notes, and snippets.

View enzofrnt's full-sized avatar
🤪
Learning to much !

Fournet Enzo enzofrnt

🤪
Learning to much !
View GitHub Profile
@jonascheng
jonascheng / celery_beat_checker.py
Created July 2, 2018 07:39
Celery beat health check script, you may specify this inside Dockerfile
import sys
import arrow
import shelve
import os.path
from datetime import datetime, timedelta
# Name of the file used by PersistentScheduler to store the last run times of periodic tasks.
FN_CELERYBEAT = 'celerybeat-schedule'