long-running-processes

What's the best way to hold an ASP.NET page until long-running operation finishes?

Javascript? Metatag refresh? Response.Redirect (to self) Server.Transfer (to self) Ajax update panel? ...

shell script to spawn processes, terminate children on SIGTERM

I want to write a shell script that spawns several long-running processes in the background, then hangs around. Upon receiving SIGTERM, I want all the subprocesses to terminate as well. Basically, I want a "master process". Here's what I got so far: #!/bin/sh sleep 600 & PID1="$!" sleep 600 & PID2="$!" # supposedly this should kill...

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 which I then cron’d, but now I have the added REST requirement, and would also like to chang...

Shutting down a Long-running process in a Windows Service

I have a Windows Service that performs a long-running process. It is triggered by a timer and the entire process can take a few minutes to complete. When the timer elapses the service instantiates a management object that performs the various tasks, logs the results and then exits. I have not implemented anything to handle those occasio...

Run arbitrary subprocesses on Windows and still terminate cleanly?

I have an application A that I would like to be able to invoke arbitrary other processes as specified by a user in a configuration file. Batch script B is one such process a user would like to be invoked by A. B sets up some environment variables, shows some messages and invokes a compiler C to do some work. Does Windows provide a stan...

How to start a long running process from Django view?

What I need to do is run a process that might take hours to complete from a Django view. I don't need to the state or communicate with it but I need that view to redirect away right after starting the process. I've tried using subprocess.Popen, using it within a new threading.Thread, multiprocessing.Process - parent process keeps hangin...

Work managers threads constraint and page cannot be displayed

Hi, We have a memory intensive processing for certain functionality and we would like to limit the number of parallel requests to this processing. We are able to configure by using "Work Managers" in WebLogic and putting a limit on the number of threads for that servlet. For example, if we put maximim thread limit as 3, then if there ar...

ASP.NET background processing blocks status or UI feedback

I know this question has been asked many times, but my problem is a little different. I have page which lets user download and upload excel file. During downloading excel, it takes approx 2 mins to generate the file. I have added checkpoints which updates the database with status like (started processing, working on header ...etc). I ha...

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 would not be able to keep the connection with the consumers opened during that time. We co...

.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 they were first created. However, I'm running into a problem that seems like pure ridiculou...

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 that this isn't frequent enough. Basically this SO Question but, on C# in Excel through VS...

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 want to be able to stop the process. so my view looks like this: def start() . . . def s...

A Way to Run a Long Process From ASP.NET page

Hello, What are your most successful ways of running a long process, like 2 hours, in asp.net and return information to the client on the progress. I've heard creating a windows service, httphandler and remoting can be successful. ...

Should I run everything in a background thread?

I am designing an application which has the potential to hang while waiting for data from servers (either Database or internet) the problem is that I don't know how best to cope with the multitude of different places things may take time. I am happy to display a 'loading' dialog to the user while access is happening but ideally I don't ...

Progress Updates on Long Process with Javascript

Hello, I have an asp.net page that calls a dll that will start a long process that updates product information. As the process is running, I want to provide the user with constant updates on which product that process is on and the status of the products. I've been having trouble getting this to work. I add information to a log text fil...

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 long-running routine. The first problem was that the progress window was never updated (which is n...

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 is however what I think I know. A request typically timeouts after 120 seconds (this is ...

Using WCF to expose underlying process

I think I must be a little dull because I'm having so much difficulty with this. I use WCF for pretty much everything in-house, it's the most appropriate technology. I have a new Silverlight 3 app that is connecting to the WCF service and that's working fine. Where the problem begins is: Because of the expense in creating the objects...

Long running stats process - thoughts on language choice?

I am on a LAMP stack for a website I am managing. There is a need to roll up usage statistics (a variety of things related to our desktop product), and I initially tackled the problem with PHP (being that I had a bunch of classes to work with the data already). All worked well on my dev box which was using 5.3 Long story short, 5.1 memo...

long processes php

hi, 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 smaller chunks. in order to do this i have written a script that stores it's stat...