Questions tagged [periodic-task]

218 questions
25
votes
6 answers

Connect new celery periodic task in django

It's not a question but help to those who will find that the declaration of periodic tasks described in celery 4.0.1 documentation is hard to integrate in django: http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html#entries copy…
vvkuznetsov
  • 1,056
  • 1
  • 9
  • 16
20
votes
7 answers

Periodically calling a function in Clojure

I'm looking for a very simple way to call a function periodically in Clojure. JavaScript's setInterval has the kind of API I'd like. If I reimagined it in Clojure, it'd look something like this: (def job (set-interval my-callback 1000)) ; some time…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
19
votes
3 answers

Django and Celery - ModuleNotFoundError: No module named 'celery.task'

I wanted to start a periodic task in Django using Celery. Here are the relevant parts of my project: # celery.py from celery import Celery # set the default Django settings module for the 'celery'…
abdullah celik
  • 511
  • 1
  • 6
  • 17
18
votes
2 answers

How to run a Django celery task every 6am and 6pm daily?

Hi I have Django Celery in my project. Currently its running every 12hour a day (Midnight/00:00am and 12:00pm). But I want it to run every 6am and 6pm a day. How can I do that? Thanks in advance. Task: from celery.task import periodic_task from…
blackwindow
  • 437
  • 1
  • 8
  • 25
13
votes
2 answers

GCMNetworkManager isn't running PeriodicTask after reboot

The app shows expected behavior if the app is running in the foreground, background or killed. However, once it is rebooted the PeriodicTask stops running Following are the relevant bits of code: In AndroidManifest:
13
votes
4 answers

GcmNetworkManager scheduling issues

I am using GcmNetworkManager in my application for periodic and one of task task execution. I am getting these 2 errors and unable to figure out the reason. Implementation is correct as i am unable to reproduce these issue on staging. Fatal…
10
votes
1 answer

asyncio - await coroutine more than once (periodic tasks)

I am trying to create a periodic task for an asyncio event loop as shown below, however I am getting a "RuntimeError: cannot reuse already awaited coroutine" exception. Apparently, asyncio does not allow for the same awaitable function to be awaited…
Arnaud H
  • 881
  • 2
  • 10
  • 16
9
votes
1 answer

How to configure CELERYBEAT_SCHEDULE in Django settings?

I can get this to run as a standalone application, but I am having trouble getting it to work in Django. Here is the stand alone code: from celery import Celery from celery.schedules import crontab app = Celery('tasks') app.conf.update( …
a_Fraley
  • 342
  • 1
  • 4
  • 12
8
votes
2 answers

How to test celery periodic_task in Django?

I have a simple periodic task: from celery.decorators import periodic_task from celery.task.schedules import crontab from .models import Subscription @periodic_task(run_every=crontab(minute=0, hour=0)) def deactivate_subscriptions(): for…
Narnik Gamarnik
  • 1,049
  • 1
  • 16
  • 35
7
votes
4 answers

A clear step by step process for running a periodic task in a django application

I have been trying a long for creating a periodic task in Django but there are lot of version constraints and not a clear explanation.
7
votes
1 answer

How to run a Haskell program endlessly using only Haskell?

I have small program that need to be executed every 5 minutes. For now, I have shell script that perform that task, but I want to provide for user ability to run it without additional scripts via key in CLI. What is the best way to achieve this?
7
votes
1 answer

How do you implement periodically executing job?

I am recently implementing a system that automatically replies to tweets that contain arbitrary hashtags. This system consists of a process that periodically crawls Twitter and a process that periodically replies to these tweets. Following the…
Junpei Tajima
  • 310
  • 1
  • 4
  • 11
7
votes
2 answers

Finding periodicity in an algorithmic signal

In testing a conjecture about the following recursive relation , which claims a periodicity of some kind for the sequence of numbers, I wrote a python program which computes the sequences and prints them in a table. 1 # Consider the recursive…
easytarget
  • 945
  • 2
  • 13
  • 35
6
votes
1 answer

Hi! I'm not able to connect with "heroku redis" on django

I've followed all the steps in the following video: https://www.youtube.com/watch?v=fvYo6LBZUh8&t=166s However, I'm not able to connect with "heroku redis", I am using celery to implement periodic tasks. The error is the following: [2021-04-02…
6
votes
0 answers

Work manager periodic task not working on Samsung( Android version 9.0)

I configured a periodic work manager request and seems like it's working on Pixel(Android version 9.0) but fails on Samsung device which is also running on 9.0 //Work manager request final PeriodicWorkRequest workRequest = new…
1
2 3
14 15