Commit f2e88286 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add a SetObject() method to set the associated uuid for an existing

parent 6d152239
......@@ -286,6 +286,20 @@ sub SetProcessID($$)
return 0;
# Set the object uuid.
sub SetObject($$)
my ($self, $uuid) = @_;
my $task_id = $self->task_id();
DBQueryWarn("update web_tasks set object_uuid='$uuid' ".
"where task_id='$task_id'")
or return -1;
$self->{'DBROW'}->{'object_uuid'} = $uuid;
return 0;
# Mark as exited. We want to leave the row around long enough for
# anyone waiting to notice it has finished. We will have to GC these
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment