Questions tagged [periodic-task]
218 questions
3
votes
1 answer
setRequiredNetworkType doesn't work on periodic tasks?
The following bit of code, from my understanding, is supposed to set a periodic job that only runs if there is a network connectivity. Meaning that despite being periodic, it won't run unless the required condition is met.
But that doesn't work. It…

student93
- 307
- 2
- 12
3
votes
0 answers
Run a Celery task trigger a error: 'Process' object has no attribute '_authkey'
Detail: https://github.com/celery/celery/issues/3634
Run time enviroment:
software -> celery:4.0.0 (latentcall) kombu:4.0.0 py:2.7.9
billiard:3.5.0.2 redis:2.10.5
platform -> system:Darwin arch:64bit imp:CPython
loader ->…

RaPo Spectre
- 51
- 4
3
votes
2 answers
How to beep every 10 seconds 7*24 no matter what on Android 6.0 and above
I would like to hear a beep every 10 seconds, 7*24 no matter what. What should I do?
it works on Doze mode.
it works exact time.
it works w/o GCM.
it works on custom ROM.
If it is not possible, would it become doable changing the 10 seconds to 1…

qcm217
- 143
- 9
3
votes
3 answers
Scheduling periodic tasks and clock drift
I would like to schedule a periodic task which executes every X hours. I have a service which is written in Java and I was thinking of creating a long running background thread that runs forever as long as the service is up. How can I ensure that we…

mewsicalcat
- 63
- 1
- 7
3
votes
2 answers
Django celery - start a periodic task after a set duration of the completion of the previous instance
Currently I have a periodic task that runs every 30 minutes. The task itself sometimes takes more than 30 minutes to complete.
How can I change such that the periodic task runs 30 minutes AFTER the last run was…

dowjones123
- 3,695
- 5
- 40
- 83
3
votes
4 answers
sending email periodically through php script
I am working on an automatic monitoring system. I have made a .NET application which have MySQL database. For this I developed a normal ADMIN Panel where admin can log in and get necessary reports coming from various queries fired on the database.…

Low-Pointer
- 163
- 2
- 13
3
votes
2 answers
How can I periodically call statistics/2 in SWI-Prolog?
I'm trying to benchmark a (SWI-)Prolog program that may take several seconds to finish. I'd like to save CPU-time and memory statistics through time to then be able to show a sort of evolution plot. Something similar to the system monitor, but just…

Carles Araguz
- 1,157
- 1
- 17
- 37
3
votes
3 answers
WebSocket Server sending messages periodically in python
I have a tornado web server in python:
import tornado.httpserver
import tornado.websocket
import tornado.ioloop
from tornado.ioloop import IOLoop
import tornado.web
import time
import threading
import sys
from datetime import datetime
from…

Snigdha
- 29
- 1
- 5
2
votes
3 answers
how to show periodic call of a state machine in UML state diagram?
I work in the field of embedded software.
In a project, we are using a time-trigged software architecture so that each component is called
periodically (with component's tick accordingly) and the component has a predetermined time to do its…

Anmk
- 193
- 1
- 9
2
votes
1 answer
Fitting a rectangular function to real data points
I would like to fit a periodic rectangle function to my data. I have tried this with the least squares method using curve_fit from scipy.optimize. Unfortunately, the optimization does not converge.
Here is a minimal example with an excerpt of the…

frevler
- 41
- 3
2
votes
1 answer
What is a good way to email outputs of python script periodically?
I'm trying to email an output of a Python script that I made, however I want to do this periodically without needing to start the script manually.
At the moment I have an Apple script which runs the appropriate Python script and sends this to…

TrickQi
- 23
- 3
2
votes
0 answers
Periodic function execution with time interval < 100 ms
My goal is to execute a function on a periodic time interval but with a high period.
The code linked below seemed very promising:
https://medium.com/greedygame-engineering/an-elegant-way-to-run-periodic-tasks-in-python-61b7c477b679.
With some minor…

Wör Du Schnaffzig
- 988
- 5
- 23
2
votes
1 answer
WorkManager does not run more than 20 jobs
I am enqueuing future work while also running the initial job "now". After 20 items get enqueued any new items that get added no longer run immediately and I'm going to have to wait 30 days to see if they run at all ;)
I have waited more than 24…

Bill Mote
- 12,644
- 7
- 58
- 82
2
votes
1 answer
How to run a task periodically in celery?
I want to run a task every 10 seconds by celery periodic task. This is my code in celery.py:
from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
…

Rahman
- 410
- 6
- 26
2
votes
1 answer
PeriodicWorkRequest don't respect the repetition time
i have a problem with the work request (1.0.0-alpha10)
Let say if i want to launch a work (in my case a notification) every 5 hours i do the following
static void StartWorker(){
PeriodicWorkRequest workRequest = new…

Nuked
- 341
- 3
- 12