[ARVADOS] updated: d08be17d479e5bbc17c28811f97d84059fc78403
git at public.curoverse.com
git at public.curoverse.com
Tue Mar 25 11:33:35 EDT 2014
Summary of changes:
sdk/cli/bin/crunch-job | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
via d08be17d479e5bbc17c28811f97d84059fc78403 (commit)
from 7079ddb46ce3e855a30a4bd5b8f1f3e626ce7b7a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d08be17d479e5bbc17c28811f97d84059fc78403
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Mar 25 11:33:29 2014 -0400
Mark output as persistent at end of job, if Job record says to do so.
diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index c098268..d4afe61 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# -*- mode: perl; perl-indent-level: 2; -*-
+# -*- mode: perl; perl-indent-level: 2; indent-tabs-mode: nil; -*-
=head1 NAME
@@ -766,6 +766,16 @@ if ($Job->{'output'})
'uuid' => $Job->{'output'},
'manifest_text' => $manifest_text,
});
+ if ($Job->{'output_is_persistent'}) {
+ $arv->{'links'}->{'create'}->execute('link' => {
+ 'tail_kind' => 'arvados#user',
+ 'tail_uuid' => $User->{'uuid'},
+ 'head_kind' => 'arvados#collection',
+ 'head_uuid' => $Job->{'output'},
+ 'link_class' => 'resources',
+ 'name' => 'wants',
+ });
+ }
};
if ($@) {
Log (undef, "Failed to register output manifest: $@");
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list