Questions tagged [periodic-task]
218 questions
6
votes
4 answers
mysql - how does mysqldump work?
I have a java application that uses mysql as back end, every night we take a backup of mysql using mysqldump and application stops working for that time period(app 20 min).
Command used for taking the backup.
$MYSQLDUMP -h $HOST --user=$USER…

Jack
- 101
- 1
- 6
6
votes
2 answers
How to set the period of a periodic task in Firebase JobDispatcher?
I've read every available official docs (which is surprisingly not a lot) and all I could get for periodic tasks is this code
.setRecurring(true)
// start between 0 and 60 seconds from now
…

student93
- 307
- 2
- 12
5
votes
2 answers
Android Work Manager: How to enqueue Jobs once a month
following this question, I looked into Android Job Scheduling and it seems like Work Manager is the latest tool if I want to do something once every month. I built a Worker class and activated it with this snippet in my activity:
PeriodicWorkRequest…

Apfelsaft23
- 316
- 2
- 23
5
votes
1 answer
Periodic Tasks with Celery and Django
I'm having troubles getting a periodic tasks to run with Celery 3.1.8, Django 1.6.1, and RabbitMQ. I'm a bit confused with the current documentation as I understand that django-celery is not needed anymore to get Celery running with Django. I have a…

Cliff F
- 381
- 6
- 14
4
votes
0 answers
Why is Django Celery Beat not starting?
I have been working on this issue for about 4 days now, and it's been extremely frustrating. I would greatly appreciate it if somebody would answer this question for me. I am working on a Django Project that requires me to periodically check objects…

DaeyongK
- 71
- 1
- 3
4
votes
3 answers
Django celery redis remove a specific periodic task from queue
There is a specific periodic task that needs to be removed from message queue. I am using the configuration of Redis and celery here.
tasks.py
@periodic_task(run_every=crontab(minute='*/6'))
def task_abcd():
"""
some operations here
…

dipesh
- 763
- 2
- 9
- 27
4
votes
1 answer
Is WorkManager's PeriodicWorkRequest really repeating for anyone?
I have tried making a repeated task every 15 minutes but Worker#doWork NEVER gets called, not even the very first time (on Nexus 6P - Android 8). However, when testing on an Android 8 emulator, I observed that it gets called the first time pretty…

avelyne
- 710
- 6
- 15
4
votes
3 answers
Making a timer: timeout inaccuracy of threading.Event.wait - Python 3.6
First of all, I am new to Python and not familiar with its functionalities. I've been mainly using MATLAB.
PC brief spec.: Windows 10, Intel i7
I am trying to make a timer class for periodic execution of a function such as MATLAB has, which is…

Hermis14
- 214
- 3
- 12
4
votes
0 answers
Periodic JobService is running multiple times per period
I'm having some trouble with my JobService just running once per period.
Here's the code of my simple and stupid JobService:
public class UpdateInfoJobService extends JobService {
public final static int UPDATE_TRACKING_INFO_JOB_ID = 741;
…

user1903
- 790
- 1
- 6
- 10
4
votes
3 answers
Django + docker + periodic commands
What's the best practices for running periodic/scheduled tasks ( like manage.py custom_command ) when running Django with docker (docker-compose) ?
f.e. the most common case - ./manage.py clearsessions
Django recommends to run it with…

Djangonaut
- 5,511
- 7
- 40
- 53
4
votes
0 answers
Testing GCM PeriodicTask
I am using GCM Network Manager (PeriodicTask) to schedule regular background updates.
This system uses GcmTaskService to run the background code. A Service extends that class, and the work is accomplished in public int onRunTask(TaskParams…

Knossos
- 15,802
- 10
- 54
- 91
3
votes
2 answers
Celery multiple workers but only one beat worker
Im trying to allow users to schedule a periodic task. Im also running multiple celery workers in a container.
My command for that container used to look like this:
celery worker -c 4 -B -l INFO -A my.celery.app.celery --scheduler…

NotSoShabby
- 3,316
- 9
- 32
- 56
3
votes
3 answers
Is there any way to run service continuously?
There are few questions similar to this on Stack Overflow but none of the solutions are working for me
The problem is with only few devices like OnePlus and MI, The service is getting killed as soon as the user swipes away app from recent app.
I…

Manohar
- 22,116
- 9
- 108
- 144
3
votes
1 answer
Celery periodic tasks once in 2 weeks
I am having trouble setting a periodic task with Celery to run once in 2 weeks on Sunday nights. Does anyone have any idea how to configure that with day_of_month day_of_week options?

Ken
- 179
- 10
3
votes
0 answers
Periodic Job stops working shortly after being triggered Firebase JobScheduler?
I'm using firebase Job Dispatcher to make a periodic job that is triggered by available network. The problem is that the service runs for about 5 minutes sometimes even less and then it stops completely. I tried connecting and disconnecting to the…

student93
- 307
- 2
- 12