1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
/*
* Copyright (C) 2013 The University of Notre Dame
* This software is distributed under the GNU General Public License.
* See the file COPYING for details.
*/
#ifndef CHIRP_JOB_H
#define CHIRP_JOB_H
#include <json-parser/json.h>
#include "chirp_types.h"
extern unsigned chirp_job_concurrency;
extern int chirp_job_enabled;
extern pid_t chirp_job_schedd;
extern int chirp_job_time_limit;
enum {
CHIRP_JOB_WAIT_MAX_TIMEOUT = 30
};
int chirp_job_create (chirp_jobid_t *id, json_value *J, const char *subject);
int chirp_job_commit (json_value *J, const char *subject);
int chirp_job_kill (json_value *J, const char *subject);
int chirp_job_status (json_value *J, const char *subject, buffer_t *B);
int chirp_job_wait (chirp_jobid_t id, const char *subject, INT64_T timeout, buffer_t *B);
int chirp_job_reap (json_value *J, const char *subject);
int chirp_job_schedule (void);
#endif
/* vim: set noexpandtab tabstop=4: */
|