[Bio] / FigKernelPackages / JobScheduler.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/JobScheduler.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7, Wed Mar 29 20:41:33 2006 UTC revision 1.8, Tue Feb 5 01:59:10 2008 UTC
# Line 66  Line 66 
66                        R => "Running",                        R => "Running",
67                        D => "Complete",                        D => "Complete",
68                        F => "Failed");                        F => "Failed");
69    =head2 Methods
70    
71    =cut
72    
73  sub new  sub new
74  {  {
# Line 110  Line 113 
113      return $job;      return $job;
114  }  }
115    
116  =head1 job_delete  =head3 job_delete
117    
118  Remove a job directory and all associated files. This will completely remove the job, so be sure you really want to do this :)  Remove a job directory and all associated files. This will completely remove the job, so be sure you really want to do this :)
119    
# Line 130  Line 133 
133    
134  =pod  =pod
135    
136  =head1 get_job_to_execute  =head3 get_job_to_execute
137    
138  Determine the next job that is ready to run.  Determine the next job that is ready to run.
139    
# Line 202  Line 205 
205    
206  =pod  =pod
207    
208  =head1 get_job($id)  =head3 get_job($id)
209    
210  Get a job object for job id $id.  Get a job object for job id $id.
211    
# Line 276  Line 279 
279    
280  =pod  =pod
281    
282  =head1 get_status()  =head3 get_status()
283    
284  Return the current status of jobs in the scheduler.  Return the current status of jobs in the scheduler.
285  This will be a list of [job_id, status code, status string] tuples.  This will be a list of [job_id, status code, status string] tuples.
# Line 302  Line 305 
305    
306  =pod  =pod
307    
308  =head1 claim_lockfile($file)  =head3 claim_lockfile($file)
309    
310  Open $file and invoke flock(LOCK_EX) on it.  Open $file and invoke flock(LOCK_EX) on it.
311    
# Line 367  Line 370 
370    
371  =pod  =pod
372    
373  =head1 run($lock_fh)  =head3 run($lock_fh)
374    
375  Run this job. $lock_fh is the filehandle for the current lock on this job. The lock  Run this job. $lock_fh is the filehandle for the current lock on this job. The lock
376  will be released when the method exits.  will be released when the method exits.

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3