Skip to content

Conversation

@vanessavmac
Copy link
Collaborator

Summary

Create a periodic celery beat task which pings the processing services and updates their last_checked timestamp and last_check_live boolean values.

List of Changes

  • Add migration to automatically create the task
  • Add celery beat task which runs on 5 minute cron schedule

Related Issues

For example, "Closes #676"

Screenshots

Screenshot 2025-01-28 at 12 24 24 AM

Processing service status and last checked values should update every 5 minutes.

Deployment Notes

Apply newly added migration ami/main/migrations/0045_add_processing_services_status_check_celery_beat_task.py

@vanessavmac vanessavmac requested a review from mihow January 28, 2025 05:25
@vanessavmac vanessavmac self-assigned this Jan 28, 2025
@netlify
Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for ami-dev canceled.

Name Link
🔨 Latest commit 70337e8
🔍 Latest deploy log https://app.netlify.com/sites/ami-dev/deploys/67b3b62b48f22c00084fbe30

@mihow mihow changed the title 676 create periodic task to check processing services Create periodic task to check processing services Feb 17, 2025
Copy link
Collaborator

@mihow mihow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works! I moved the task to the ami.ml app instead of main. This is a really helpful template and I will be adding more periodic tasks soon. Thank you!!

@mihow mihow merged commit 48f29cd into main Feb 17, 2025
6 checks passed
@mihow mihow deleted the 676-create-periodic-task-to-check-processing-services branch February 17, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create periodic task to check processing services

3 participants