Long running processes prevent other processes from responding as quickly as intended. Typically a problem in UI programming, long running processes can prevent the UI from responding to user input.
Questions tagged [long-running-processes]
289 questions
1
vote
1 answer
Handle long running tasks gracefully
I am working in microservices architecture. Every service has few long-running tasks (data processing, report generation) which can take up to 1-2 hours. We are using Kafka for the queue.
How to handle cases where pod restart or any deployment…

Shivam Singh
- 21
- 4
1
vote
0 answers
Python code of finding random prime numbers using Parallel Miller-Rabin Algorithm
I am writing python code using parallel processing for random prime no generation. I am using Miller Rabin Algorithm to check prime nos. The parallel python code suppose to run fast as comapre to non parallel pthon code but this is not the case.…

fanwer
- 13
- 3
1
vote
1 answer
Animated gif image isn't being animated in my modeless Gtk::Dialog
My goal is to show a brief "Please Wait..." dialog with an animated gif (spinner) in a Gtk::Dialog.
My problem is that when I do not use Gtk:Dialog::run(), the gif won't be animated, and when I do use the Gtk:Dialog::run() method it completely…

PhantomLord
- 33
- 4
1
vote
1 answer
How to handle Entity Framework lifetime in a long-running process?
I am making a data extraction tool (.NET Core console app) that will process tens of thousands of files and write extracted data to a database. There are only insertions to the DB, no reads or updates. I intend to run multiple instances, all writing…

Mike Kantor
- 1,400
- 4
- 24
- 45
1
vote
1 answer
Postgres: monitor what part of the execution plan is running for long queries
The information in pg_stat_activity is sort of scarce, and does not give progress information for long queries.
This information is sort of available in v$session_longops in Oracle, which gives which object is being processed (target), the number of…

BenoitParis
- 3,166
- 4
- 29
- 56
1
vote
2 answers
How to update background task status periodically in Django?
I have a django project which contains a long running process. I have used django-background-tasks library for this. It works but I want to create a pending page for users and display the status of the task. I should refresh that page every 60…

Aslı Kök
- 616
- 8
- 19
1
vote
0 answers
How to do long running process in Django view?
I have a django web application and I have to create model for Machine Learning in a view.
It takes a long time so PythonAnyWhere does not allow it and it kills the process when it reaches 300 seconds. According to that, i want to ask two…

Aslı Kök
- 616
- 8
- 19
1
vote
1 answer
PHP Monitoring child processes
I'm working on a script that listens to a message queue. The only problem that I have with this is that I can only bind one queue per script. I'm wondering if there is a way to have a parent php script that can ride herd on a few child scripts to…

Ben Dauphinee
- 4,061
- 8
- 40
- 59
1
vote
2 answers
Use Java 8 stream's map function for long running tasks
I have a method that takes a List of URLs (of remote files) as parameter that should be downloaded. The method returns a List of other type (called Attachment), that actually holds a property of java File-type inside.
For this case I used the Java…

moh
- 53
- 1
- 7
1
vote
1 answer
What does SAGA stand for?
I know that A saga is a sequence of local transactions where each transaction updates data within a single service. The first transaction is initiated by an external request corresponding to the system operation, and then each subsequent step is…

Hosein Razaghi
- 116
- 1
- 10
1
vote
0 answers
Large file upload using Flask and Celery
I am trying to implement a large file upload in flask using celery. I have a function that saves the file stream to the disk as a celery task but, my implementation requires the use of the request context inside of my task function. I have done my…

VimalSheoran
- 55
- 4
1
vote
0 answers
KILL SPID not working after several hours Lock Status WAIT
I have a problem with a Rollback of a ALTER TABLE ALTER COLUMN of a table that has more than 2 billion lines. It is taking more than one day and after trying to KILL the SPID nothing changes...I know that it could take long to rollback but this is…

Doug Valverde
- 11
- 2
1
vote
1 answer
Showing loading image/progress bar for long running processes in ASP.Net Ajax
How can I show loading image for the user while executing long running process in an ASP.Net Ajax application? Is there a way other than using Page Methods? Any ideas?

NLV
- 21,141
- 40
- 118
- 183
1
vote
1 answer
Is it bad to run a long-running process on a server in a Gnu Screen session?
I have a long running process that currently logs output to stderr, and I'm just starting it up and leaving it running on the server within a gnu screen session on the server, which I just detach when I logout of the server and reattach after I log…

dan
- 43,914
- 47
- 153
- 254
1
vote
1 answer
Best practices to show a progress for Android JetPack?
We should init our ViewModel asynchronously. Loading the data right from a local SQLite DB could be quite fast(but not always). If we will pump data from some remote source it could be pretty notable delay. So user needs some visual feedback on it…

engilyin
- 1,011
- 9
- 22