11,244 questions
1
vote
1
answer
72
views
Sometimes wrong output in Java queue simulation
Problem summary:
Each person in line has tickets[i] tickets to buy. Every second
The person at the front buys one ticket.
If they still need more tickets, they move to the end of the queue.
We need ...
0
votes
0
answers
47
views
Using Nitro with Sidequest, exporting functions to be used by external dependency?
I'm trying to use Nitro with Sidequest for queues.
Sidequest has to do some specific importing of the "job" files, as explained here:
https://docs.sidequestjs.com/jobs/manual-resolution#...
0
votes
0
answers
86
views
Laravel Queue Process Slow
I hope you’re all doing well. I’m reaching out because I’m facing an issue with my setup. I have a .NET application and a Laravel system integrated via API. The .NET application sends payloads to the ...
0
votes
0
answers
42
views
Laravel + RoadRunner + SQS — API workers blocked while publishing to SQS (70ms latency per request)
I’m running a high-concurrency Laravel application on an EC2 instance using RoadRunner (12 PHP workers).
Each incoming request simply publishes a message to AWS SQS — that’s all it does.
The problem: ...
1
vote
1
answer
41
views
Is circular linked list needed for "Circular" queue?/
I am learning about queue data structure in python. I learnt the implementation of a queue using list in python and the issue of memory wastage when we dequeue a few elements from the front. We use a ...
2
votes
4
answers
97
views
Postgresql stops using filter index
I have a very simple table for a task queue and keep taking records out one by one. If I add the filter_selector after filling/resetting the table, postgresql will use it and run super fast. But if I ...
2
votes
0
answers
117
views
Why does my queued job in Laravel 10 not execute after dispatch?
I have a fresh Laravel 10 app and I'm trying to test queues.
I created a job with php artisan make:job TestJob.
routes/web.php
Route::get('/test-job', function () {
\App\Jobs\TestJob::dispatch();
...
0
votes
1
answer
63
views
System verilog constraint for queues with fixed number of 6s
Can someone help me with system verilog constraint for the below requirement.1) Fixed queue size of 10 and has four 6s in it at random position.
I tried the below constraint to start with.
class ...
3
votes
1
answer
68
views
Celery task called inside another task always goes to default queue even with queue specified
I’m running Celery with Django and Celery Beat.
Celery Beat triggers an outer task every 30 minutes, and inside that task I enqueue another task per item.
Both tasks are decorated to use the same ...
2
votes
0
answers
79
views
supervisor creating logs file without the write permissions
We’re running some Laravel commands using Supervisor on our server. Each program writes to a log file in storage/logs.
The issue is that whenever a Supervisor rotates or creates a new log file, it’s ...
0
votes
0
answers
52
views
ASP.NET Core background service and queue processing behaves weird
I have a background service that periodically reads (not peeks) a message from an Azure storage queue and call an API to get values (that could returns 204 and will be retired), and then once gets ...
1
vote
1
answer
62
views
Best practice for handling high-volume post creation using queues in NestJS (Bull), and where to place charge logic?
I'm building a social app similar to Telegram using NestJS, PostgreSQL, and Prisma.
In one part of the app, I need to create a high volume of posts (e.g., thousands at once).
To prevent performance ...
2
votes
1
answer
128
views
This MPSC Queue (Multi Producer Single Consumer Queue) keeps on waiting in the consumer side sometimes although I have used CAS operations
This MPSC Queue (Multi Producer Single Consumer Queue) keeps on waiting in the consumer side sometimes although I have used CAS operations. I have added CAS operation for the enqueue function. Since I ...
1
vote
1
answer
121
views
dynamically resizing array in queue implementation [closed]
I'm trying to write a queue that will store strings. Using GDB I can tell that I make a memory allocation error in the function resizeQueue.
Here's the exact message:
Program received signal SIGTRAP, ...
-1
votes
2
answers
164
views
How do i comunicate between Threads Using Queues(janus)?? In Python [closed]
I'm building a multi-threaded system where:
One thread connects to a WebSocket, processes live kline data, and
queues symbol-interval keys for processing.
Another thread runs multiple async workers ...