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
2
votes
1 answer
Using Kafka to communicate between long running Spark jobs
I am new to Apache Spark and have a need to run several long-running processes (jobs) on my Spark cluster at the same time. Often, these individual processes (each of which is its own job) will need to communicate with each other. Tentatively, I'm…

smeeb
- 27,777
- 57
- 250
- 447
2
votes
2 answers
ASP.NET Long Task Hangs Other Pages?
I'm generating reports on the fly using the great SpreadSheetGear tool. At first things were great because the reports were simple and done in under 1 second. Now I'm at more complex reports and they are taking about 30 seconds up to 1 minute. This…

Clint Davis
- 451
- 1
- 12
- 29
2
votes
3 answers
PHP process that will always be on
I'm working on a project for my company. Essentially we are going to have a long running process that will hit APIs on a python server to send and recieve JSON responses. It will take the data from these API calls and update tables in a mysql…

Allie Fitter
- 1,689
- 14
- 18
2
votes
4 answers
Common Ways of handling long running process in ASP.NET
We have a long running data transfer process that is just an asp.net page that is called and run. It can take up to a couple hours to complete. It seems to work all right but I was just wondering what are some of the more popular ways to handle a…

user204588
- 1,613
- 4
- 31
- 50
2
votes
1 answer
Best way to schedule very long running process from Spring MVC servlet
I have a Java Spring (MVC) servlet and I need to create a slow, long running process that would create entries in the database over time. The servlet should provide view to the database content, also some information about the status of the…

Audrius Meškauskas
- 20,936
- 12
- 75
- 93
2
votes
2 answers
SQL Server long running query taking hours but using low CPU
I'm running some stored procedures in SQL Server 2012 under Windows Server 2012 in a dedicated server with 32 GB of RAM and 8 CPU cores. The CPU usage is always below 10% and the RAM usage is at 80% because SQL Server has 20 GB (of 32 GB) assigned.…

Francisco Goldenstein
- 13,299
- 7
- 58
- 74
2
votes
0 answers
Cordova long running location service
I'm confused about when an app goes in the background and what the implications are when an app goes in the background.
I'm trying to have a long running service that detects location changes.
Plugin.xml:

Steven Wexler
- 16,589
- 8
- 53
- 80
2
votes
1 answer
Best practice for load balanced Web API that uses shared long running processes?
I am building a platform that will support logging data from IP connected devices. The logger uses a proprietary API to communicate with the connected devices and dump the data to the database. I'm using ASP.NET Web API to provide start/stop…

Greg Grater
- 2,001
- 5
- 18
- 24
2
votes
0 answers
How to keep app running in background to monitor movements
I am implementing an application to monitor user's movement/activity (when playing game/sport or sleeping in bed) using accelerometer via CMMotionManager, so I need to keep app running in background to record data, I tried to use background task but…

Son Nguyen
- 3,481
- 4
- 33
- 47
2
votes
4 answers
Long-running ASP.NET tasks
I know there's a bunch of APIs out there that do this, but I also know that the hosting environment (being ASP.NET) puts restrictions on what you can reliably do in a separate thread.
I could be completely wrong, so please correct me if I am, this…

John Leidegren
- 59,920
- 20
- 131
- 152
2
votes
4 answers
wpf window refresh works at first, then stops
I've got a routine that grabs a list of all images in a directory, then runs an MD5 digest on all of them. Since this takes a while to do, I pop up a window with a progress bar. The progress bar is updated by a lambda that I pass in to the…

mlibby
- 6,567
- 1
- 32
- 41
2
votes
5 answers
Processing long-running operations from a windows service
Edit (again): Let me simplify my problem. I have a Windows Service that exposes some WCF endpoints with methods like:
int ExecuteQuery(string query) {
// asynchronously execute query that may take 1 second to 20 minutes
return…

intoOrbit
- 2,122
- 2
- 19
- 21
2
votes
2 answers
How to run a program, one after another
I'm running many programs (all written in fortran). Right now I'm running one program (./first) but I would like that once it is finished another one starts running (./second), and once that other program finishes the next one starts (./third) and…

user3412058
- 315
- 1
- 4
- 13
2
votes
2 answers
Pattern for long-running operation with cancellation ability
In order to perform long-running (let it be search in this context) operation, I put the loading logic inside a TPL task, so the general method Search() is called on background thread. Search() operation can be long enough, so I need the ability to…

stukselbax
- 5,855
- 3
- 32
- 54
2
votes
2 answers
How to kill a linux process when the only access is via FTP?
I rendered unusable one of my (linux 2.6) remote systems by running on it a process that put the system in an awful state (is either hogging the CPU, consuming too much memory, or exhausting some other system resource). I can no longer login via ssh…

ePhrygian
- 51
- 6