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
7
votes
4 answers
How to run long-lasting process asynchronously under asp.net?
.net 4.5, asp.net mvc: What is the best way to run long-lasting process (1-2 minutes) from ASP.NET application giving it should be run in a single-threaded environment, I mean the process is initiated for one user at a time only, executions for all…

YMC
- 4,925
- 7
- 53
- 83
7
votes
2 answers
Flask long routines
I have to do some long work in my Flask app. And I want to do it async. Just start working, and then check status from javascript.
I'm trying to do something like:
@app.route('/sync')
def sync():
p = Process(target=routine, args=('abc',))
…

sashab
- 1,534
- 2
- 19
- 36
6
votes
4 answers
.NET Automated Testing for Long Running Processes
We would like to do some automated integration testing of a process that requires sending data to an external source and then validating that the data has been correctly displayed on their website.
However it may take several hours before the data…

Martin Capodici
- 1,486
- 23
- 27
6
votes
0 answers
How can a user cancel a long running query?
Related: How can you cancel a SQL Server execution process programmatically
I have created an application (Windows, WPF) which is basically a viewer for data in a database (Sql Server). The application has NO editing functionality.
The…

Chris Dunaway
- 10,974
- 4
- 36
- 48
6
votes
2 answers
Recommendations for designing a long-running, resource-intensive web service
I have a .NET function that does some complex calculation. Depending on the parameters that are passed in, the function:
Takes anywhere from several minutes to several hours to run
Uses 100% of a single core during the computation
Requires anywhere…

Akash
- 2,311
- 1
- 20
- 37
6
votes
4 answers
Long Running Powershell Script Freezes
We are using a long running PowerShell script to perform a lot of small operations that can take an extremely long amount of time. After about 30 minutes the scripts froze. We were able to get the scripts to start running again by pressing Ctrl-C…

smaclell
- 4,568
- 7
- 41
- 49
6
votes
1 answer
How to execute / abort long running tasks in Node JS?
NodeJS server with a Mongo DB - one feature will generate a report JSON file from the DB, which can take a while (60 seconds up - has to process hundreds of thousands of entries).
We want to run this as a background task. We need to be able to…

Matt Bryson
- 2,286
- 2
- 22
- 42
6
votes
4 answers
Python - Launch a Long Running Process from a Web App
I have a python web application that needs to launch a long running process. The catch is I don't want it to wait around for the process to finish. Just launch and finish.
I'm running on windows XP, and the web app is running under IIS (if that…

Greg
- 45,306
- 89
- 231
- 297
6
votes
2 answers
Cancel a long running task over WCF from client
I have a WCF service set to PerCall
I would like to know how I can send a Start call from the client to start a long running process, and send a Cancel command to cancel it
My WCF service looks something like this
…

Null Reference
- 11,260
- 40
- 107
- 184
5
votes
2 answers
Executing python code in new process is much slower than on main process
I started learning about multiprocessing in python and I noticed that same code is executed much faster on main process than in process which is created with multiprocessing module.
Here is simplified example of my code, where i first execute code…

Domen Jakofčič
- 626
- 1
- 8
- 24
5
votes
3 answers
Android Service running on separate Process gets killed when I swipe out my App (running in other process)
I have an Android Service (implementation of Servcie interface) which is running on a separate process compared to my real app. Unfortunately when I leave my real App (in which I clicked the Button to start my Service) and swipe it out from Task…

Sebsen36
- 447
- 3
- 10
5
votes
2 answers
Android restart service correctly after app is closed
I am currently developing an email application which relies on a background service in order to be able to automatically fetch new emails. This works perfectly when the application is open (or in the running list of apps) but as soon as I close the…

Toby Clench
- 403
- 1
- 5
- 22
5
votes
1 answer
Best practice for processing a lot of data while the user waits (in Rails)?
I have a bookmarklet that, when used, submits all of the URLs on the current browser page to a Rails 3 app for processing. Behind the scenes I'm using Typhoeus to check that each URL returns a 2XX status code. Currently I initiate this process via…

markquezada
- 8,444
- 6
- 45
- 52
5
votes
2 answers
Calling a long running process asynchronously on a button click in JSF
I want to execute a stored proc by clicking on a button developed in JSF and Java. The proc takes roughly around 30 minutes in execution.
When the user clicks on this button, s/he should get a default message like -
Data is being processed.…

whywake
- 880
- 10
- 29
5
votes
4 answers
Winform updates on long running tasks
Do you have a good solution for keeping a 'Please wait' winform 'painted' while an application is performing a long running task ?
I've tried using form.refresh() on each step, but there are a few long running queries that take place, which means…

Nick Haslam
- 1,512
- 1
- 24
- 47