|
|
@ -154,11 +154,9 @@ STATIC_URL = "static/"
|
|
|
|
|
|
|
|
|
|
|
|
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
|
|
|
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
|
|
|
|
|
|
|
|
|
|
|
CELERY_BROKER_URL = env.url(
|
|
|
|
CELERY_BROKER_URL = env("CELERY_BROKER_URL", default="amqp://guest:guest@localhost:5672//")
|
|
|
|
"CELERY_BROKER_URL", default="amqp://guest:guest@localhost:5672//"
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CELERY_RESULT_BACKEND = env.url("CELERY_RESULT_BACKEND", default="redis://")
|
|
|
|
CELERY_RESULT_BACKEND = env("CELERY_RESULT_BACKEND", default="redis://")
|
|
|
|
|
|
|
|
|
|
|
|
CELERY_BEAT_SCHEDULE = {
|
|
|
|
CELERY_BEAT_SCHEDULE = {
|
|
|
|
"import-shifts-every-60-seconds": {
|
|
|
|
"import-shifts-every-60-seconds": {
|
|
|
@ -187,7 +185,7 @@ CELERY_BEAT_SCHEDULE_FILENAME = str(BASE_DIR / "storage" / "celerybeat-schedule"
|
|
|
|
|
|
|
|
|
|
|
|
if env("SENTRY_DSN", default=None):
|
|
|
|
if env("SENTRY_DSN", default=None):
|
|
|
|
sentry_sdk.init(
|
|
|
|
sentry_sdk.init(
|
|
|
|
dsn=env.url("SENTRY_DSN"),
|
|
|
|
dsn=env("SENTRY_DSN"),
|
|
|
|
integrations=[CeleryIntegration(), DjangoIntegration()],
|
|
|
|
integrations=[CeleryIntegration(), DjangoIntegration()],
|
|
|
|
auto_session_tracking=False,
|
|
|
|
auto_session_tracking=False,
|
|
|
|
traces_sample_rate=0,
|
|
|
|
traces_sample_rate=0,
|
|
|
|