Questions tagged [long-running-processes]

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.

289 questions
2
votes
3 answers

Global state of long-running process in django

I have the need to kick off a long-running process in response to a form submission in django. Then, I'd like to be able to poll using ajax and have the view respond with the state of the process (started, stopped, or running). Additionally, I…
user67416
2
votes
2 answers

How to implement headless app with BlackBerry 10.2 OS

I want to get an idea of how to implement a long running headless application with BlackBerry 10.2 OS. I don't need any complex function to happen in the background. I need only to print a Console out-put. I have used the QTimer class and at this…
AnujAroshA
  • 4,623
  • 8
  • 56
  • 99
2
votes
2 answers

Long running webservice architecture

We use axis2 for building our webservices and a Jboss server to run the logic of all of our applications. We were asked to build a webservice that talks to a bean that could take up to 1 hour to respond (depending on the size of the request) so we…
2
votes
1 answer

Is Quartz.Net appropriate to run a long process started from an ASP.Net 3.5 page?

I have a long running task (many hours) that is started via a web page on an intranet interface. This is an ASP.Net 3.5 project. Of course, I could extend the script timeout and let the page run for several hours, but I don't think this is a clean…
2
votes
5 answers

python long running daemon job processor

I want to write a long running process (linux daemon) that serves two purposes: responds to REST web requests executes jobs which can be scheduled I originally had it working as a simple program that would run through runs and do the updates…
1
vote
1 answer

Prevent long running PHP script from closing

I'm running a php script via cli, so it can run in background. This script is suposed run 24/7. How can I prevent it from shutting down (on errors, warnings, etc) and restart immediatly if it happens? Thanks in advance!
MGP
  • 653
  • 1
  • 14
  • 33
1
vote
1 answer

Worker vs Service android application. Running app for long time, never stops

Android : java class → Worker vs Service ? What is the difference between Worker and Service? Which is better to do something in background for a long time. Application never stops. Dear friends. Android : java class → Worker vs Service I made an…
1
vote
0 answers

Google Document AI - Inconsistent Long Running Operation's metadata JSON representation

While checking the status of Document AI - Long Running Operation (Form processor), the JSON representation of decodedOperation.metadata seems to vary during the execution. I suspect that operation response does not resolve straight away despite…
1
vote
2 answers

GCD and UIBackgroundTaskIdentifier

I have a dispatch queue that has some work in it. I want the queue to keep running till either time runs out or the queue gets drained, when the application goes into the background. How would I set up the UIBackgroundTaskIdentifier? Do I need to…
1
vote
0 answers

How to handle long running async task using celery in a python project

Current project has few periodic celery async tasks which takes more than 1 hour to finish by celery worker. Ideally these tasks should have been properly designed and broken down into smaller tasks but it is not possible for now. What should be the…
1
vote
1 answer

In Jupyter, do you do a running update (hide) a pandas table as you are updating it?

In Jupyter, I am running a long-running computation. I want to show a Pandas table with the top 25 rows. The top 25 may update each iteration. However, I don't want to show many Pandas tables. I want to delete / update the existing displayed Pandas…
Joseph Turian
  • 15,430
  • 14
  • 47
  • 62
1
vote
1 answer

How to instantiate a PHP object and pass to shell_exec?

I have a PHP process that can take many minutes to complete. From what I have been reading on the web, I believe that the correct way to handle this is that I should use PHP shell_exec() to pass this long running task off to "at" and let the long…
karozans
  • 53
  • 7
1
vote
1 answer

Is it safe to terminate an orchestrator function that is waiting on a timer?

If I call IDurableOrchestrationClient.TerminateAsync on a running orchestrator that is currently sleeping and waiting on a durable timer created through IDurableOrchestrationContext.CreateTimer, will this result in a graceful shutdown of the entire…
1
vote
1 answer

Graceful shutdown with spring and long-running threads

We have the problem that there are multiple async threads that process a bunch of data and need minutes or some of them even hours to end. The pod also processes some other short running request. It might occur that the pod has to be moved, and a…
1
vote
0 answers

Long running service with large amount of data transfer to activity

I am using USB to communicate audio and video from some external hardware. Video is displayed on a Surface as long as the app is in foreground but audio should keep playing even when in background. Using threads doesn't seem to work, when the app…