219 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
10
votes
3
answers
712
views
How to safely handle thread join when interrupt signal (SIGINT) may arrive during join()?
I’m facing a design issue in a multithreaded C++ program related to safely shutting down threads.
Here’s the problem:
My main program starts multiple threads.
During shutdown, I call join() on each ...
0
votes
1
answer
40
views
How to pass dynamic Periodic interval from runnable task to Java : ScheduledExecutorService
Job: Need to invoke API periodically with time interval. Interval is determined from API only because API will return expireIn as a interval and We need to invoke the API again with that interval.
...
0
votes
1
answer
80
views
How to trigger Django task at specific date in model field
I have a model that contains the following field
class EventConfig(models.Model):
end_date = models.DateTimeField(blank=True, null=True)
I have celery installed that's sending periodic emails and ...
0
votes
0
answers
90
views
What is the most effective method for periodically calling an API in the background?
I have application where I use TimeTask for counting timeFromLastOrderLoad.
val t: TimerTask = object : TimerTask() {
override fun run() {
timeFromLastOrderLoad += 1
...
0
votes
2
answers
526
views
Executing async Task every n seconds, including the runtime of the Task itself [duplicate]
I have a windows service, in which I want to execute a asynchronous task every n seconds, but the time the task I am waiting for should be included in this n seconds.
Here is a short sample
...
0
votes
1
answer
2k
views
Celery doesn't detect and register tasks in django python
I'm facing a problem where I can't set up periodic tasks in my application in django framework using Celery.
I've literally tried everything i could find adressing this issue on the internet, ...
1
vote
3
answers
2k
views
Django Celery Results Table Missing periodictaskname and taskname Fields
I have set up Django with Celery, using django_celery_results and django_celery_beat to schedule tasks and store the results. The tasks are running successfully, but I've encountered an issue with the ...
0
votes
0
answers
55
views
In my .net C# Windows service app I want to execute a function periodicaly. I am not sure how to wait/sleep the program in a precious way?
I have to execute a function periodically for a specific time in my windows service app. The function is reading out a current value from a remote CNC machine. The function will be executed every 35 ...
1
vote
1
answer
267
views
I have a C# function that I have to execute every 50ms. But execution of the function sometimes takes>50ms. How can I manage this problem? [duplicate]
In my C# script, I have a C# function that I have to execute exactly every 50ms for 20 seconds. I am doing this with a C# microtimer dll.
https://www.codeproject.com/Articles/98346/Microsecond-and-...
4
votes
0
answers
940
views
How to use a gRPC client in a Celery task
I'm working on a FastApi application that uses Celery to execute tasks, and I'm trying to integrate a gRPC client within a Celery task. However, I'm running into an InactiveRpcError that I can't seem ...
0
votes
1
answer
254
views
How to store response of an api in cache and call api after every 12 hours? [closed]
I have an api call that have list of images and text in json response, i want to store json in local and use it in the ui, The api should be called after every 12 hours and save data in cache or the ...
0
votes
0
answers
52
views
update value certain time later using django appscheduler
I want to update a value every day at a certain time later.
I wrote my models and views look like
models.py
class InvestmentRequest(models.Model):
user = models.OneToOneField(User, related_name="...
1
vote
1
answer
576
views
is there any way or package which can run background tasks every minute periodically in flutter
I am trying to build a flutter app for my company (just for android), in which we assign tasks to employees and track their location.
What I want to do, is to send http request every minute ...
2
votes
1
answer
2k
views
I want to implement WorkManager for Periodic work every one minute but WorkManager not work properly so how to implement?
Here is my worker class:
public class DataContinueWork extends Worker {
public DataContinueWork(Context context,
WorkerParameters workerParams) {
super(context,...
1
vote
2
answers
544
views
How can I execute a code in C# (Windows Service) periodically in the most precise way?
I have a code with which I am reading in 35ms intervals the current and position values of a machine's CNC axis from a remote computer.
The data is read from the CNC/PLC control system of the machine
...