signebedi / gita-api

a RESTful Bhagavad Gita API
GNU Affero General Public License v3.0
0 stars 0 forks source link

Celery and celerybeat reloads aren't working #105

Closed signebedi closed 7 months ago

signebedi commented 7 months ago

Celery and celerybeat reloads aren't working because we have not defined ExecReload in the systemd unit file...

root@ip-172-31-88-43:/opt/gita-api# /opt/gita-api/utils/gita_reload_manager.sh production
Fri Feb  9 20:57:14 UTC 2024 - production-gita-api-gunicorn.service reloaded successfully
Failed to reload production-gita-api-celery.service: Job type reload is not applicable for unit production-gita-api-celery.service.
Fri Feb  9 20:57:14 UTC 2024 - production-gita-api-celery.service reloaded successfully
Failed to reload production-gita-api-celerybeat.service: Job type reload is not applicable for unit production-gita-api-celerybeat.service.
Fri Feb  9 20:57:14 UTC 2024 - production-gita-api-celerybeat.service reloaded successfully
Fri Feb  9 20:57:14 UTC 2024 - Reload trigger file removed.
signebedi commented 7 months ago

Kinda a dirty fix here, but we'll just restart celery and celerybeat instead of reloading them. I don't imagine that the distinction will be a significant one, like it might have been for gunicorn...