Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
5 changes: 5 additions & 0 deletions src/MGRAST/lib/JobDB/Job.pm
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ sub set_filter_options {

job function that creates an options string based upon all tag / value pairs
in JobAttributes for job and sets $job->{options} to its value.
also adds 'user_name' and 'project_id' as tags
format: tag1=value1&tag2=value2 ...
returns options string

Expand All @@ -835,6 +836,10 @@ sub set_job_options {
while ( my ($t, $v) = each %$job_data ) {
push @job_opts, "$t=$v";
}
push @job_opts, "user_name=".$self->owner->login;
if ($self->primary_project) {
push @job_opts, "project_id=mgp".$self->primary_project->id;
}
my $opts_string = join("&", @job_opts);
$self->options($opts_string);

Expand Down