Questions tagged [job-queue]

In system software, a job queue (sometimes batch queue), is a data structure maintained by job scheduler software containing jobs to run.

A job queue is a queue (that is, a First In First Out (FIFO) collection) of tasks to be carried out at an unspecified time in the future. Workers may take on the task at the head of the queue and carry it out, returning to take another when they are finished.

This is often applied to multi-threaded programming environments, in which there are fewer threads than available tasks so tasks must be queued until a thread is available to process them.

113 questions
2
votes
2 answers

javascript await keyword deffer microtask to the next tick

According to the MDN documentation on await: When an await is encountered in code (either in an async function or in a module), the awaited expression is executed, while all code that depends on the expression's value is paused and pushed into the…
AlexBor
  • 151
  • 2
  • 12
2
votes
1 answer

Python Telegram Bot Job Queue

I am trying to setup a bot that sends messages every hour, I tried everything I found in google and here in stack overflow, but can't seem to make job queue work. Here is my code, I pretty much took it from official python-telegram-bot git hub. Here…
Piotr F
  • 55
  • 6
2
votes
0 answers

How to implement a job queue in React Native

There are a couple of API requests in my React Native project where, if the device has no connection at the time of the request, the request should be tried again in the background once the connection is back up. All the React Native libraries I…
colado
  • 307
  • 4
  • 13
2
votes
0 answers

What's the recommended approach for a complex job queue?

The Problem I need a job queue system that's much more complex than a standard FIFO or priority queue. The queue would mostly need to act like a standard FIFO queue, but with much more complex logic surrounding the dequeing and running of jobs. In…
Jason Fox
  • 29
  • 1
2
votes
0 answers

Azure Queue GetMessage Conditionally

We have multiple job messages being queued to cloud storage queue. The worker roles GetMessage() from respective Job Queues (We have multiple queues) and process them. We are trying to create multiple workers process messages from same queue using…
2
votes
2 answers

C# Job Queue Implementation with delayed event notification

I'm looking for an existing job-queue implementation in .Net (3.5) and I was wondering if anyone has suggestions for a good one. I assume that no job queue will be able to do exactly what we want, so I'm looking for one that can easily be…
Liron
  • 2,012
  • 19
  • 39
2
votes
1 answer

Is the JavaScript ES promise fulfillment handler job queue executed before all the setTimeout and setInterval handler queue?

The following code: let promise = new Promise(function(resolve, reject) { console.log("resolve, reject are", resolve, reject); resolve("this is the success data"); console.log("Point A"); setTimeout(function() {…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
2
votes
2 answers

Suggestions for distributed task scheduling and Job queue in spring boot

REQUIREMENT : In my project(runs in distributed environment) we have requirement to for a job to be scheduled at fixed time with initial delay of 1 min and it will retry if the job execution failed and it can do a max retry of 10 times with 2 mins…
shashantrika
  • 1,039
  • 1
  • 9
  • 29
2
votes
2 answers

How can I change the Job Queue processing in Laravel?

I have three jobs in my queue; A B C Retry count for one of them is set to 100. When all my jobs are failing, Laravel runs the jobs as following scheme; A 1 B 1 C 1 and then; A 2 B 2 C 2 I want to change this behavior as the following…
Süha Boncukçu
  • 913
  • 1
  • 10
  • 29
2
votes
1 answer

How to collapse and successively run tasks-antagonists in Celery

I have tasks A and B in Celery. B is an antagonist for A. So, when this tasks run in parallel with same parameters, system becomes inconsistent. There is two questions: Can I run tasks A and B always successively based on params? I want to run A…
Vitaly Chirkov
  • 1,692
  • 3
  • 17
  • 33
2
votes
2 answers

Can a worker send a message back to the producer

I have a NodeJS application with the following situation: I receive a request from a user to calculate something that requires using a very complex mathematical formula. Currently, I run this entire process at that moment, figure out the value,…
paul smith
  • 1,327
  • 4
  • 17
  • 32
2
votes
1 answer

Is there a job queue system that allows tasks to be dependent on other tasks?

For example, I'm working on a deployment app. Let's say we deploy 4 branches from SVN, that requires 4 svn export from subversion. This may take a while depending on the branch we check out so I was thinking of sending this to a job queue. When all…
sdot257
  • 10,046
  • 26
  • 88
  • 122
1
vote
1 answer

Can element in JOB QUEUE be completed after element in TASK QUEUE?

community! I've been recently discovering how JavaScript works and came across interesting moment with order of elements being executed in Job Queue and Task Queue. As we all know, Job Queue has higher priority then Task Queue. But is it correct,…
1
vote
0 answers

Python Telegram Bot ensure state changes in Job callback

I've scheduled a Job which sends users a message and expects a response. How can I ensure the conversation state changes in the callback? The following does not seem to work. def job_callback_function(context: CallbackContext): …
1
vote
0 answers

How to handle Laravel jobs based on removed releases

we have many releases per day, each release has its own folder. The folder current points to latest release folder. We are using the job queue feature of Laravel with Redis. Now it happens sometimes that jobs stay longer in the queue then the…
ownking
  • 1,956
  • 1
  • 24
  • 34