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
3
votes
1 answer

Controller actions appear to be synchronous though on different requests?

I am under the impression that the below code should work asynchronously. However, when I am looking at firebug, I see the requests fired asynchronously, but the results coming back synchronously: Controller: [HandleError] public class…
Oded
  • 489,969
  • 99
  • 883
  • 1,009
3
votes
0 answers

Process [sync_supers] using 100% CPU

I've found out the process [sync_supers] running twice, using 100% of cpu each of those. It was triggered by the user share which is a user to access a share folder used by Samba users. The user share has access only to…
Lucas Aimaretto
  • 1,399
  • 1
  • 22
  • 34
3
votes
1 answer

What will happen when inserting a row during a long running query

I am writing some data loading code that pulls data from a large, slow table in an oracle database. I have read-only access to the data, and do not have the ability to change indexes or affect the speed of the query in any way. My select statement…
Jrud
  • 1,004
  • 9
  • 25
3
votes
1 answer

IntelliJ IDEA + Gradle - How can I log a long running Gradle task run from the IDE?

IntelliJ IDEA sometimes takes a long time to do a Gradle refresh task or run a Gradle task. It will just kinda spin for a long time leaving you wondering how far along it is or if it's even doing anything at all or frozen? For example this has been…
Nicholas DiPiazza
  • 10,029
  • 11
  • 83
  • 152
3
votes
2 answers

Django, Python calling Python code without waiting for response?

I am using Django and am making some long running processes that I am just interacting with through my web user interface. Such as, they would be running all the time, checking a database value every few minutes and stopping only if this has…
Rick
  • 16,612
  • 34
  • 110
  • 163
3
votes
2 answers

Mechanisms for creating long-running process

Are there alternative mechanism(s) for creating a long-running process besides running an infinite loop? The common pattern seems to be this: while True: # Check for some condition or waiting for some event # Do some processing …
skyork
  • 7,113
  • 18
  • 63
  • 103
3
votes
1 answer

Offloading strategy for longer-running tasks in Express Routes

I have an application which uses Express as user-facing framework for my REST API, together with RabbitMQ for RPC-like function calls to a clustered backend. Also, I use Q to promisify all my workload in the Routes. In one of the Routes I'm using, I…
Tobi
  • 31,405
  • 8
  • 58
  • 90
3
votes
3 answers

Launching a long-running background task - from ASP.NET or a scheduled job

I have a fairly long-running process (several minutes) that I need to run roughly once a month - but not on a fixed schedule, but after a user clicks Go in a ASP.NET Webforms GUI page. Since ASP.NET really isn't designed to handle long-running…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
3
votes
1 answer

Method of "cooperatively" terminating a WCF service (basic HTTP, non-duplex)

I have a WCF service that takes a long time to run. (For the sake of this question I am not interested in breaking up the service call.) However, when a client disconnects forcibly the WCF service will continue to run to completion - even if the…
user2864740
  • 60,010
  • 15
  • 145
  • 220
3
votes
5 answers

long processes php

i need to run a really long php script (four and half, five hours). the script sometimes runs successfully, but sometimes gets killed inexplicably (poss something to do with the shared hosting??). i think that the solution maybe to run the script is…
significance
  • 4,797
  • 8
  • 38
  • 57
3
votes
1 answer

How to handle long running process using TPL

I have started learning TPL in C# recently. We have a windows service that does some functionality. I have to perform each job paralelly rather than sequentially. Each job will be taking more than 10 mins to complete. So, i am considering this as…
Sai Avinash
  • 4,683
  • 17
  • 58
  • 96
3
votes
1 answer

Cherrypy : which solutions for pages with large processing time

I have a website powered by cherrypy. For some pages, I need quite a long processing time (a multi-join SQL request on a several-million-row DB). The processing needs sometimes 20 seconds or more, and the browser get crashed because it is too…
Loic Rosnay
  • 335
  • 2
  • 14
3
votes
1 answer

Handling "blocking" long running operations in Android

There's a common application behavior pattern, when you can't go next unless current action is finished. A good example is authentication: once you provided the app with you login and password, and tapped "Sign In", the app will block for a while…
3
votes
5 answers

.NET Frustration - Process.GetProcessById Returns New Reference

I'm writing a c# program that will launch many child processes. At some time later on, I'll need to retrieve those processes by ID and then match those processes to a set of processes stored in a Dictionary that were added to the Dictionary when…
Chad
  • 3,159
  • 4
  • 33
  • 43
3
votes
1 answer

Thread or Task for long running operation

I need to have a thread in my app that will be long running (it is a job scheduler, Cron like) and will be most of the time sleeping. So not much CPU and IO. What would you advise me for this . Does a Task with long running option is the proper way…