Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is timezone referred to as a field in the docs but its not released? #148

Closed
viperfx opened this issue Jun 19, 2018 · 15 comments
Closed

Comments

@viperfx
Copy link

viperfx commented Jun 19, 2018

The current release is 1.1.1, but when you install it, or you take a look at the tag on github, the migration does not involve the timezone field for the 0006 migration file.

What is going on with this?

@viiicky
Copy link

viiicky commented Jul 25, 2018

yeah, The README is updated as the code is merged to master, but the feature is not released yet. These are the commits made since last release i.e. since v.1.1.1: v1.1.1...master

@ask @DDevine @thedrow @ShaheedHaque @auvipy @mbaechtold @wardal @mheppner any idea on the next release date?

I am evaluating django-celery-beat for my scheduling needs and two of the most needed important features shall become live on the next release:

Many Thanks

@thedrow
Copy link
Member

thedrow commented Jul 25, 2018

I'll work on a release as soon as I can.

@viiicky
Copy link

viiicky commented Jul 25, 2018

ok, thanks @thedrow

@devangmehta123
Copy link

devangmehta123 commented Sep 23, 2018

Is it safe to use the master branch in our requirements before the next release? We really need the timezone setting feature for the tasks.

We are struggling to get CELERY_TIMEZONE to be recognized as 'Europe/London'. It always works as UTC.

Our Django is 1.10.2, celery is 4.2.1, django-celery-beat is 1.1.1

I have filed a separate issue for this: #161

@auvipy
Copy link
Member

auvipy commented Sep 29, 2018

you can use it

@thedrow
Copy link
Member

thedrow commented Oct 8, 2018

I'm really sorry for the delay.
I've been extremely busy.
Can you please check if 1.2.0 resolves your issue?

@auvipy
Copy link
Member

auvipy commented Oct 8, 2018

Omer, could you also push django-celery-result to pypi?

@thedrow
Copy link
Member

thedrow commented Oct 8, 2018

I'll try to get to it in the next few days.

@viperfx
Copy link
Author

viperfx commented Oct 18, 2018

any updates? ive been using a crude solution for scheduling which is check to fire tasks every minute. But its better than dealing with all the bugs right now

@viperfx
Copy link
Author

viperfx commented Oct 18, 2018

@viiicky what have you done to solve your scheduling needs since your original comment?

@viiicky
Copy link

viiicky commented Oct 19, 2018

@viperfx after testing django-celery-beat quite a lot, I made the decision to not use Celery for our scheduling needs.

We are still using Celery, but just for workers. For scheduling purposes, we have put an APScheduler in front.

APScehduler turned out to be much more mature and reliable for scheduling purposes.

In fact our stuff is already live in production now.

We make our scheduler put the messages in queue at desired times and let workers eat those messages immediately.

@viperfx
Copy link
Author

viperfx commented Oct 19, 2018

@viiicky thanks for the reply.

Are you using APScheduler with a database backend? E.g. is there tables that maintain a schedule for tasks should fire? does it handle timezones as well?

@viiicky
Copy link

viiicky commented Oct 19, 2018

@viperfx yes we are using database storage for APScehduler.

It maintains a running records of jobs in a table. And the row is present in the DB unless the schedule ends. If the job repeats indefinitely, the row doesn't get deleted ever for that job.

Yes, it has support for Timezones as well. For simplicity, we are using UTC for everything. But nothing stops us from using timezones.

@viperfx
Copy link
Author

viperfx commented Oct 19, 2018

@viiicky okay thanks. That sounds promising.

It sounds like you are scheduling the job programmatically. I am looking to have the schedule or Cron set in a database.

Do you have an example of how Django models can be setup to use APScheduler?

@auvipy
Copy link
Member

auvipy commented Mar 4, 2021

this should be fixed now

@auvipy auvipy closed this as completed Mar 4, 2021
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

No branches or pull requests

5 participants