Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
machinejobfeatures
mjf-scripts
Commits
8aeb6bcf
Commit
8aeb6bcf
authored
May 25, 2016
by
Andrew McNab
Browse files
exec in mjf-job-wrapper for HTCondor
parent
6acc1ecd
Changes
3
Hide whitespace changes
Inline
Side-by-side
README
View file @
8aeb6bcf
...
...
@@ -69,8 +69,7 @@ already defined, then this can simply be done by setting
USER_JOB_WRAPPER = /usr/sbin/mjf-job-wrapper in the HTCondor configuration.
If a job wrapper is already being used, then it must be modified to run
/usr/sbin/make-jobfeatures in the way mjf-job-wrapper does,
including exporting $JOBFEATURES and $MACHINEFEATURES to the job itself
and removing the $JOBFEATURES directory when the job finishes.
including exporting $JOBFEATURES and $MACHINEFEATURES to the job itself.
$JOBFEATURES/hs06_job is calculated from $MACHINEFEATURES/hs06 with a pro-rata
share for the job in question, based on $JOBFEATURES/allocated_cpu which is
...
...
VERSION
View file @
8aeb6bcf
VERSION=00.1
3
VERSION=00.1
4
mjf-job-wrapper
View file @
8aeb6bcf
...
...
@@ -51,10 +51,4 @@ if [ -d /etc/machinefeatures ] ; then
export
MACHINEFEATURES
=
/etc/machinefeatures
fi
$*
# We tidy these up. They are in /tmp by default so we could just
# leave them to be removed by the system instead.
if
[
-d
"
$JOBFEATURES
"
]
;
then
rm
-Rf
"
$JOBFEATURES
"
fi
exec
"
$@
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment