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

« back to all changes in this revision

Viewing changes to src/plugins/sched/wiki2/sched_wiki.c

  • 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:
2
2
 *  sched_wiki.c - Wiki plugin for Moab and Maui schedulers.
3
3
 *****************************************************************************
4
4
 *  Copyright (C) 2006-2007 The Regents of the University of California.
 
5
 *  Copyright (C) 2008 Lawrence Livermore National Security.
5
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
6
7
 *  Written by Morris Jette <jette1@llnl.gov>
7
 
 *  LLNL-CODE-402394.
 
8
 *  CODE-OCEC-09-009. All rights reserved.
8
9
 *  
9
10
 *  This file is part of SLURM, a resource management program.
10
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
11
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
12
 *  Please also read the included file: DISCLAIMER.
11
13
 *  
12
14
 *  SLURM is free software; you can redistribute it and/or modify it under
13
15
 *  the terms of the GNU General Public License as published by the Free
39
41
 
40
42
#include "src/common/plugin.h"
41
43
#include "src/common/log.h"
 
44
#include "src/common/slurm_priority.h"
42
45
#include "./msg.h"
43
46
 
44
47
const char              plugin_name[]   = "Wiki (Maui and Moab) Scheduler plugin";
118
121
                return 0;
119
122
        }
120
123
 
121
 
        if (init_prio_mode == PRIO_DECREMENT) {
122
 
                if (last_prio >= 2)
123
 
                        return (last_prio - 1);
124
 
                else
125
 
                        return 1;
126
 
        }
 
124
        if (init_prio_mode == PRIO_DECREMENT) 
 
125
                return priority_g_set(last_prio, job_ptr);
 
126
        
127
127
        return 0;
128
128
}
129
129
 
140
140
/**************************************************************************/
141
141
int slurm_sched_plugin_reconfig( void )
142
142
{
143
 
        return parse_wiki_config();
 
143
        int rc = parse_wiki_config();
 
144
        (void) event_notify(1235, "Partition change");
 
145
        return rc;
144
146
}
145
147
 
146
148
/**************************************************************************/