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
5
votes
3 answers

Long running (or forever) task on Windows Azure

I need to write some data to database every 50 seconds or so. It's similar to a Windows service that's running on background and silently doing its job. Starting and stopping is not an option in my case as I need a small amount of previously…
4
votes
2 answers

Long running python process with Google Cloud Functions

I'm trying to run a python script in Google Cloud which will download 50GB of data once a day to a storage bucket. That download might take longer than the timeout limit on the Google Cloud Functions which is set to 9 minutes. The request to invoke…
FreshMike
  • 481
  • 1
  • 6
  • 26
4
votes
1 answer

Angular-material - FAB Speed Dial does not work with Ionic

I'm developing an Ionic application and I'm having some issues to make FAB Speed Dial works properly. This component is located at an specific page, and the user should navigate through 2 pages before open the page mentioned. When the page is…
brevleq
  • 2,081
  • 10
  • 53
  • 97
4
votes
3 answers

Massive data operations in the stored proc to DDD

Lets take an example of a product classification. All the products needs to be classified as vegetable or not. The business logic is, the product can be classified as vegetable if that product is from company A, B & C. If the product is not from…
4
votes
1 answer

SwingUtilities invokeLater equivalent in SWT / Eclipse 3.x API?

What is SwingUtilities.invokeLater() equivalent in Eclipse API 3.x? I.e. how to run something on "main thread"? Can I use @Inject UISynchronize sync; for this in Eclipse Plug-In 3.x? It is written, that UISynchronize is valid "since 1.0". What…
Dims
  • 47,675
  • 117
  • 331
  • 600
4
votes
1 answer

LongRunning + AttachedToParent (simultaneously) task

My Task have to work for a long time (it's like a service) - so I need to make it LongRunning. At the same time, I need to mark it as AttachedToParent to prevent parent task completion before my service's task completion. How to combine this two…
astef
  • 8,575
  • 4
  • 56
  • 95
4
votes
2 answers

Alternative to an infinite loop

I have an infinite loop:- while(true) { //display an image } Obviously the CPU goes up. I have used: Thread.Sleep(100); Thread.Sleep(0); ApplicationDoEvents() - I know i shouldn't This loop will never end unless the application is ended. Are they…
Andrew Simpson
  • 6,883
  • 11
  • 79
  • 179
4
votes
1 answer

Inherent memory leaks in iOS or MonoTouch?

We are battling with memory leaks in an iPad app that has to be stable enough to be able to keep running for 24/7, as such, memory leaks are intolerable. As a simple test, we created a new iPad MonoTouch project, using the "Single View" template,…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
3
votes
2 answers

how to check if a specific instance of a class is running in java?

I have a class which will get data from socket. I should create 5 instance of this class according several condition. How can i check if a specific instant of this class is running, other ways creating that specific instance which is missing? This…
michdraft
  • 197
  • 2
  • 3
  • 10
3
votes
1 answer

Why ASP.NET long running page request hangs forever for the client?

We ran into a problem with an ASP.NET web application written in C# which is built with Web Forms (.ASPX pages). There are some long running requests in this system which take about 10-15 minutes. This is normal due to the heavy SQL queries and…
3
votes
3 answers

How do I detect that a PHP CLI script is in a Hung state

I am using supervisor (http://supervisord.org/) to daemonize a fairly standard PHP script. The script is structured something like: while (1) { // Do a SQL select // for any matching rows, do something // if I have been running for longer than…
Shaheeb Roshan
  • 611
  • 1
  • 7
  • 17
3
votes
0 answers

Socket.io (using flask and javascript) connection drops when running long running process

I am new to this Socket.io library. May be I am missing something trivial. I am using Flask for server side and javascript for client side. Both sides are able to 'emit' data and call functions on the other side. However, when I have a long running…
nikki
  • 31
  • 3
3
votes
1 answer

Resource optimization/utilization in EMR for long running job and multiple small running jobs

My use-case: We have a long running Spark job. Here after called, LRJ. This job runs once in a week. We have multiple small running jobs that can come at any time. These jobs has high priority than the long running job. To address this, we…
san
  • 3,350
  • 1
  • 28
  • 40
3
votes
2 answers

How to run long running operation asynchronously and show loading for the user in ASP.Net Ajax and poll for the result?

I've a heavy operation which takes long time to be completed in my asp.net application. I don't want to run the entire operation in one request which may result in a TimeOut error. Instead I want to invoke the operation in a separate thread and poll…
NLV
  • 21,141
  • 40
  • 118
  • 183
3
votes
1 answer

Why code in Promise executes synchronously?

In my project I have a very long running operation, so I decided to put it in a Promise because I thought that in this way I could continue to execute the other operations while the code inside the Promise was running. While debugging, I find out…
Salvatore
  • 499
  • 10
  • 16
1 2
3
19 20