Giter Site home page Giter Site logo

Comments (12)

oca159 avatar oca159 commented on July 17, 2024 9

I have the same problem when I edit a periodic task from the django admin interface. I need to restart everything to fix the problem

from django-celery-beat.

Hoffs avatar Hoffs commented on July 17, 2024

Well so I did more digging today and it seems it might have been somewhat related to deleting the task rather than disabling it. Changed that to only edit already existing task and now... Even worse. It seems that the tasks don't get updated in beat scheduler after I modify their objects in Django. See picture:
capturea
Between updates the enabled flag is still false, yet the tasks get executed:

2017-02-22T11:41:12.809197+00:00 app[worker1.1]: [2017-02-22 11:41:12,808: DEBUG/Beat] beat: Waking up in 4.93 seconds.
2017-02-22T11:41:17.765244+00:00 app[worker1.1]: [2017-02-22 11:41:17,764: INFO/Beat] Scheduler: Sending due task Collecting statistics (twitch_stats.tasks.get_all_stats)
2017-02-22T11:41:17.766246+00:00 app[worker1.1]: [2017-02-22 11:41:17,766: DEBUG/Beat] twitch_stats.tasks.get_all_stats sent. id->2bdb0223-bae9-476e-ae18-9175e07586b8

By restarting the worker process I can get the tasks to update, but if I change anything to them during runtime it is not being applied or rather applied in beat worker.

So it seems this is the issue I am having... #7

from django-celery-beat.

Hoffs avatar Hoffs commented on July 17, 2024

Installing latest django-celery-beat version from this repo didn't seem to help, but https://github.com/HealthTechDevelopers/celery@master seemed to help. Now scheduler seems to be updating fine.

2017-02-22T19:51:01.799004+00:00 app[worker1.1]: [2017-02-22 19:51:01,798: INFO/Beat] DatabaseScheduler: Schedule changed.
2017-02-22T19:51:01.799130+00:00 app[worker1.1]: [2017-02-22 19:51:01,799: INFO/Beat] Writing entries...

from django-celery-beat.

niyazielvan avatar niyazielvan commented on July 17, 2024

same problem here :(
no fixes ?

from django-celery-beat.

faxioman avatar faxioman commented on July 17, 2024

same here

from django-celery-beat.

frnhr avatar frnhr commented on July 17, 2024

Indeed this looks like #7

from django-celery-beat.

Revocsid avatar Revocsid commented on July 17, 2024

Same here.
I checked #7 feed and it seems that the problem is not completely solved.

from django-celery-beat.

rh0dium avatar rh0dium commented on July 17, 2024

I've also done some digging the ONLY way I've found to get it back to normal is to remove all periodic tasks and restart celery beat.

For me that looks like this.

celery -A <APPNAME> worker --events -B -S django -l debug
celery -A <APPNAME> events -l debug --camera django_celery_monitor.camera.Camera --frequency=2

from django-celery-beat.

capooti avatar capooti commented on July 17, 2024

same here

from django-celery-beat.

Tanbouz avatar Tanbouz commented on July 17, 2024

No idea what is going on. But when I ran two beats and a single worker which doesn't make any sense to me, one of the beat processes started to send periodic tasks.

One beat process gets stuck
Waking up in 4.99 seconds.

While the other says
Waking up in 5.00 seconds.
Then sends the task to the queue which is then picked up by the worker.

Celery installed as such
pip install git+https://github.com/celery/celery.git#egg=celery

Versions

django-celery-beat (1.0.1)
celery (4.0.2)
Django (1.10.1)

from django-celery-beat.

Allan-Nava avatar Allan-Nava commented on July 17, 2024

I have the same problem when I edit a periodic task from the django admin interface. I need to restart everything to fix the problem

How can I fix it?

from django-celery-beat.

auvipy avatar auvipy commented on July 17, 2024

whats the result with 1.4.0 release?

from django-celery-beat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.