diff --git a/.env.template b/.env.template index 9688169c..15bc0dd0 100644 --- a/.env.template +++ b/.env.template @@ -12,3 +12,7 @@ SMTP_PASSWORD=password # Maintenance Mode (Server-side, auto-detected by frontend) MAINTENANCE_MODE=false MAINTENANCE_MESSAGE=המערכת בתחזוקה תכנונית. אנא נסו שוב מאוחר יותר. + +# Enables the background job worker + schedule heartbeat (recurring jobs like +# attendance-cleanup-sweep) on this server instance. +WORKER_ENABLED=true diff --git a/docker-compose-swarm.yml b/docker-compose-swarm.yml index 32fd9981..e57f02e9 100644 --- a/docker-compose-swarm.yml +++ b/docker-compose-swarm.yml @@ -96,6 +96,7 @@ services: SMTP_PASSWORD: $SMTP_PASSWORD MAINTENANCE_MODE: $MAINTENANCE_MODE MAINTENANCE_MESSAGE: $MAINTENANCE_MESSAGE + WORKER_ENABLED: $WORKER_ENABLED # ports: # - '30004:3000' networks: diff --git a/docker-compose.yml b/docker-compose.yml index 4b4e82a0..12ab48d2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -63,6 +63,7 @@ services: SMTP_PASSWORD: $SMTP_PASSWORD MAINTENANCE_MODE: $MAINTENANCE_MODE MAINTENANCE_MESSAGE: $MAINTENANCE_MESSAGE + WORKER_ENABLED: $WORKER_ENABLED depends_on: - database labels: