Project

General

Profile

Actions

Bug #11121

closed

[Crunch] Set output collection owner_uuid to match job

Added by Tom Clegg about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Story points:
-

Description

Currently, if a job is started with owner_uuid set to a shared project, the job and its log are shared, but its output is not.

We do this with the log collection

  my $log_coll = api_call(
    "collections/create", ensure_unique_name => 1, collection => {
      manifest_text => $log_manifest,
      owner_uuid => $Job->{owner_uuid},
      name => sprintf("Log from %s job %s", $Job->{script}, $Job->{uuid}),
    });

but we need to do it with the output collection too.

  my $pid = open2($child_out, $child_in, 'python', '-c', q{
import arvados
import sys
print (arvados.api("v1").collections().
       create(body={"manifest_text": sys.stdin.read()}).
       execute(num_retries=int(sys.argv[1]))["portable_data_hash"])
}, retry_count());

source:sdk/cli/bin/crunch-job


Subtasks 1 (0 open1 closed)

Task #11125: Review 11121-crunch-output-collection-ownerResolved02/16/2017Actions
Actions

Also available in: Atom PDF