Scheduling jobs on PCs after work hours

Hi All,

There’s a task that I want to do and while I can explain it to people, I
was having trouble finding the right keywords that would lead me home
with Google.

Basically, we have 20 PCs in the office and we’d like to do some
simulation/ test runs/ builds, etc. when CPU capacity is available.
When there is an urgent demand, we reach “for the clouds”, so to speak.
But right now, we are just keen to use spare CPU cycles to do some
random testing.

So, what I’m looking for is something similar to SETI@Home and does
this:

  • Wake up at a pre-scheduled time (say, after office hours)
  • Connect to a central job server (and optionally present credentials)
  • Ask the job server for a job
  • Download the necessary for the job

this may include updating the local executable for the job
this may include copying a bunch of input files/ basic data
this will include copying data specific for this job

  • Set up the environment for the job - copy the executable to the
    correct place, set up the data in the correct place and input files
  • Call a batch file to run the job
  • Once done, send the results to a central server and email the job
    owner
  • Ask for the next job

Is there any ready-made solution that would let me do this, or would
push me in the correct direction? The client needs to run on Windows PC
since that’s what we have lying around in the office.

If there’s nothing, could you point me to the kind of technologies that
I should look at… this just might be a year-end hobby project :slight_smile:

Thanks,
Mohit.

Hi Mohit,

I haven’t looked at it in some time, but Condor is something that may
interest you. :slight_smile:

Garth

Hi Garth,

On 18/12/2011 7:31 PM, Garthy D wrote:

Hi Mohit,

I haven’t looked at it in some time, but Condor is something that may
interest you. :slight_smile:

http://research.cs.wisc.edu/condor/

Thanks for this! I was looking for something that used Ruby, but Condor
certainly looks like the kind of thing that I am looking for. Did you
use Condor at all? Any notes from the battlefield?

Best Regards,
Mohit.
19/12/2011 | 11:34 AM.

Have you looked at GitHub - javan/whenever: Cron jobs in Ruby

  • Federico

From: Garthy D [email protected]
To: ruby-talk ML [email protected]
Sent: Sunday, December 18, 2011 8:14 PM
Subject: Re: Scheduling jobs on PCs after work hours

Hi Mohit,

It’s been a while, so my knowledge is probably somewhat outdated now. :}
I can say that I’ve personally seen and worked with at a couple of
successful Condor deployments where jobs were farmed out to
(Windows-based) computing labs after hours, so it is definitely in
real-world use.

I can’t offer any suggestions for Ruby-based solutions to this problem-
I don’t know any. :confused: Perhaps somebody on this list knows of some
Ruby-based options?

Garth

Hi Mohit,

It’s been a while, so my knowledge is probably somewhat outdated now. :}
I can say that I’ve personally seen and worked with at a couple of
successful Condor deployments where jobs were farmed out to
(Windows-based) computing labs after hours, so it is definitely in
real-world use.

I can’t offer any suggestions for Ruby-based solutions to this problem-
I don’t know any. :confused: Perhaps somebody on this list knows of some
Ruby-based options?

Garth

Hi Federico,

Thanks for replying to a thread from Dec 2011!!

On 8/5/2013 12:36 PM, Federico Romano wrote:

Have you looked at GitHub - javan/whenever: Cron jobs in Ruby

I haven’t but will take a look. Thanks for the tip.

Best Regards,
Mohit.