JosePedroMonteiro
JosePedroMonteiro

Reputation: 11

Seeking Flask alternative to Django Celery Beat supporting timezones and multi-user crontab storage

I'm working on a Flask application, and I'm facing challenges with scheduling tasks in different timezones.

I previously attempted to use Celery Beat with the Celery Beat Scheduler backed by MongoDB (celerybeat-mongo), but it didn't fully meet my requirements due to limited timezone support. The scheduling functionality needs to accurately handle tasks based on different timezones, a crucial aspect for my application.

I'm now looking for recommendations for a Flask-compatible task scheduler that offers robust timezone support.

Your suggestions and insights are highly appreciated. Thank you!

Upvotes: 0

Views: 111

Answers (1)

JosePedroMonteiro
JosePedroMonteiro

Reputation: 11

I wanted to update you on my progress. I ended up implementing a custom task scheduling solution that meets my needs.

In my implementation, I extended the ScheduleEntry class from celery.beat and rewrote the nowfun method with my own implementation to handle timezone-specific scheduling. This allowed the scheduler to manage tasks accurately according to their specified timezones.

The custom scheduler integrates seamlessly with Flask and uses MongoDB for persistence. If anyone has similar needs or questions about extending ScheduleEntry or implementing timezone-aware task scheduling, feel free to reach out. I’m happy to share more details.

Thanks!

Upvotes: 1

Related Questions