~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to src/slurmctld/job_scheduler.h

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
8
8
 *  Written by Morris Jette <jette@llnl.gov>, et. al.
9
9
 *  Derived from dsh written by Jim Garlick <garlick1@llnl.gov>
10
 
 *  LLNL-CODE-402394.
 
10
 *  CODE-OCEC-09-009. All rights reserved.
11
11
 *  
12
12
 *  This file is part of SLURM, a resource management program.
13
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
13
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
14
 *  Please also read the included file: DISCLAIMER.
14
15
 *  
15
16
 *  SLURM is free software; you can redistribute it and/or modify it under
16
17
 *  the terms of the GNU General Public License as published by the Free
66
67
extern int build_job_queue(struct job_queue **job_queue);
67
68
 
68
69
/*
 
70
 * epilog_slurmctld - execute the prolog_slurmctld for a job that has just
 
71
 *      terminated.
 
72
 * IN job_ptr - pointer to job that has been terminated
 
73
 * RET SLURM_SUCCESS(0) or error code
 
74
 */
 
75
extern int epilog_slurmctld(struct job_record *job_ptr);
 
76
 
 
77
/*
69
78
 * job_is_completing - Determine if jobs are in the process of completing.
70
79
 * RET - True of any job is in the process of completing
71
80
 * NOTE: This function can reduce resource fragmentation, which is a 
100
109
/* Print a job's dependency information based upon job_ptr->depend_list */
101
110
extern void print_job_dependency(struct job_record *job_ptr);
102
111
 
 
112
/*
 
113
 * prolog_slurmctld - execute the prolog_slurmctld for a job that has just
 
114
 *      been allocated resources.
 
115
 * IN job_ptr - pointer to job that will be initiated
 
116
 * RET SLURM_SUCCESS(0) or error code
 
117
 */
 
118
extern int prolog_slurmctld(struct job_record *job_ptr);
 
119
 
103
120
/* 
104
121
 * schedule - attempt to schedule all pending jobs
105
122
 *      pending jobs for each partition will be scheduled in priority