background-process

Can Sql Server 2008 Stored Procedures (or Triggers) manually parallel or background some logic?

Hi folks, If i have a stored procedure or a trigger in Sql Server 2008, can it do some sql calculations 'in another non-blocking thread'? ie. something in the background also, can two sql code blocks be ran in parallel? or two stored procs be ran in parallel? for example. Imagine we are given the job calculating the scores for each St...

KShell background task not showing in jobs

I've written a simple KShell script to kick off a background task #/bin/ksh #startMonitoring ./detectFile /usr/local/data/testFile > fileHistory & I run it with the following command startMonitoring When I run jobs I get no results, but the command is running and shows up in ps: 512232 pts/0 0:34 /bin/ksh ./detectFile /usr/...

What is the best way to geocode large sets as a background process in Ruby on Rails?

I am implementing a contact importer and will be geocoding the contacts that are imported. If a user imports 1000 contacts, geocoding is way too slow. Essentially I would like to start a background process to geocode the contacts after they are imported and somehow report the status to a log. Does this sound like the best way to do ...

how to manage and queue background jobs

A web app that launches cpu intensive background jobs in the background whenever users call it. example: youtube.com. people upload videos, it gets converted in background job. how can you deal with many users simultaneously attempting to launch their own background jobs ? it must be queued correct? additionally, if the background job...

How to create background process in spring webapp?

I want to run background process in parallel with my spring-mvc web-application. I need a way to start in automatically on context loading. Background process is a class that implements Runnable. Is spring-mvc has some facilities for that? ...

Timed server events with ruby on rails

I am attempting to create a web-based game in Ruby on Rails. I have a model named 'Game', which has a datetime in the database entry that corresponds to a time that I would like the server to call the Game model's update_game function. Depending on the game's settings, this could be every 30 seconds to every 12 hours. Ruby on Rails ...

Background script on shared host with multiple PHP versions installed

I was needing a way to generate thumbnails (using PHP5) for an image management script and had a problem where my host has multiple versions of PHP installed (4 and 5), with PHP4 set as default. This meant that any calls to php from the CLI would run PHP4. I've come up with the following as what I hope to be a cross platform solution. I'...

Launch a process and get its return code or interrupt it if it lasts too long

Hello, I have a PHP script launched from a command-line (aka CLI mode, no webserver involved). In this script I launch a command that will run from some time, usually exiting after a couple minutes. But at times, this command will run for hours because of various issues, and the best I can do is kill it and wait for a while before laun...

Where should I put background processes in rails?

I'm building a Rails project that has a cron-type job that I'm managing with Rufus Scheduler. I have two questions about how to set this up appropriately in Rails: Where's the best place to put the job's code? Where should I place the Rufus code to schedule the job? How should I kick it off? ...

Fork delayed job from the app server?

Here's my simple ideal case scenario for when I'd like delayed job to run: When the first application server (whether through mongrel or passenger) starts, it'll start my delayed job workers. When the last running application server terminates, it'll kill all the delayed job workers. The first part (starting) is doable, although I'm ...

How to run Console Application in Background (no UI)?

Possible Duplicate: .Net Console Application that Doesnt Bring up a Console I have a console application written in VB.NET that will become a scheduled task on a web server. It will run every ten minutes. The problem is that every ten minutes it displays the empty black CMD window while processing, which can be distracting. ...

PHP Launch script after background process completes?

I am converting a PDF with PDF2SWF and Indexing with XPDF.. with exec.. only this requires the execution time to be really high. Is it possible to run it as background process and then launch a script when it is done converting? ...

Asynchronous background processes in Python?

I have been using this as a reference, but not able to accomplish exactly what I need: http://stackoverflow.com/questions/89228/how-to-call-external-command-in-python/92395#92395 I also was reading this: http://www.python.org/dev/peps/pep-3145/ For our project, we have 5 svn checkouts that need to update before we can deploy our applic...

Spawn a background process in Ruby

I'm writing a ruby bootstrapping script for a school project, and part of this bootstrapping process is to start a couple of background processes (which are written and function properly). What I'd like to do is something along the lines of: `/path/to/daemon1 &` `/path/to/daemon2 &` `/path/to/daemon3 &` However, that blocks on the fi...

Start or ensure that Delayed Job runs when an application/server restarts.

Hi there, We have to use delayed_job (or some other background-job processor) to run jobs in the background, but we're not allowed to change the boot scripts/boot-levels on the server. This means that the daemon is not guaranteed to remain available if the provider restarts the server (since the daemon would have been started by a capis...

Are there any Rails Plugins that use JS to poll the server for completion of a background process?

I know it might be simple to write some polling JS that asks the Rails application if it has completed a background job. But I wonder if anyone has already packaged up this functionality as a plugin. Basically, I have a few delayed_jobs running, and am looking for a plugin that will poll the server for completion of a particular job, th...

Background processing in rails

Hi, This might seem like a FAQ on stackoverflow, but my requirements are a little different. While I have previously used BackgroundRB and DJ for running background processes in ruby, my requirement this time is to run some heavy analytics and mathematical computations on a huge set of data, and I need to do this only about the first 15...

Background process in linux using Ruby on Rails

Hi All, I want to do some process such as sending emails or using ffmpeg commands in backgound as it takes to much time. I want it should run in a background. I am using Fedora 10. Also can i check whether my background process is running successfully or not . is it posssible?if yes what would be the steps i should follow.Any help is a...

Can i use the background process in flash

Hi All, I am working on a application where i am pulling the data from the database using the web services. but my Application is hand till all the data get downloaded. Is there any way in the flash where i can download some of the part and the flash player should be in working mode and i should download the other information in backg...

C#/Mono Run Server in Background

Hello, I created a Server that listens for HTTP connections all the time. It's a default Console Application and runs on a Linux Machine using Mono (2.4). The Problem is that i want this Server to move itself to the background (deamonize itself). I couldn't find a Solution on Google and mono Server.exe & is not really what i'm looking f...