git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename 'cleanup' to 'post'.
[whenjobs.git]
/
lib
/
whenexpr.ml
diff --git
a/lib/whenexpr.ml
b/lib/whenexpr.ml
index
6e12a5d
..
2cb6863
100644
(file)
--- a/
lib/whenexpr.ml
+++ b/
lib/whenexpr.ml
@@
-83,6
+83,11
@@
type shell_script = {
sh_script : string;
}
sh_script : string;
}
+type preinfo = {
+ pi_job_name : string;
+ pi_serial : Big_int.big_int;
+}
+
type result = {
res_job_name : string;
res_serial : Big_int.big_int;
type result = {
res_job_name : string;
res_serial : Big_int.big_int;
@@
-92,7
+97,8
@@
type result = {
res_start_time : float;
}
res_start_time : float;
}
-type cleanup = result -> unit
+type pre = preinfo -> bool
+type post = result -> unit
type variable =
| T_unit
type variable =
| T_unit
@@
-124,7
+130,8
@@
type job_cond =
type job = {
job_loc : Loc.t;
job_name : string;
type job = {
job_loc : Loc.t;
job_name : string;
- job_cleanup : cleanup option;
+ job_pre : pre option;
+ job_post : post option;
job_cond : job_cond;
job_script : shell_script;
}
job_cond : job_cond;
job_script : shell_script;
}