Skip to content

Commit

Permalink
Merge pull request #241 from volunteers-for-city-projects/feature/she…
Browse files Browse the repository at this point in the history
…dule

Changed the task launch schedule
  • Loading branch information
ArtemKAF authored Nov 24, 2023
2 parents 3d1a4c2 + 9ae3278 commit 0603eb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
CELERY_BEAT_SCHEDULE = {
'delete_not_active_users': {
'task': 'users.tasks.delete_not_active_users',
'schedule': crontab(hour='*/24'),
'schedule': crontab(hour=20, minute=45),
},
}

Expand Down
2 changes: 1 addition & 1 deletion infra_bt/docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
volumes:
- static_data:/backend_static
- media_data:/app/media
command: celery -A backend.celery_app worker -l info
command: celery -A backend.celery_app worker -l info -E
restart: unless-stopped
depends_on:
backend:
Expand Down
2 changes: 1 addition & 1 deletion infra_bt/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ services:
volumes:
- static_data:/backend_static
- media_data:/app/media
command: celery -A backend.celery_app worker -l info
command: celery -A backend.celery_app worker -l info -E
restart: unless-stopped
depends_on:
backend:
Expand Down

0 comments on commit 0603eb4

Please sign in to comment.