Skip to content

Commit

Permalink
Write results
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Nov 7, 2018
1 parent e814f0c commit a277339
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/QueuedJobProgressService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
class QueuedJobProgressService extends QueuedJobService
{
/**
* Make public
* Make public and immediately write the results to the table.
*
* {@inheritDoc}
*/
public function copyJobToDescriptor($job, $jobDescriptor)
{
return parent::copyJobToDescriptor($job, $jobDescriptor);
$result = parent::copyJobToDescriptor($job, $jobDescriptor);

$jobDescriptor->write();

return $result;
}

/**
Expand All @@ -25,4 +29,4 @@ public function copyDescriptorToJob($jobDescriptor, $job)

$job->jobDescriptorId = $jobDescriptor->ID;
}
}
}

0 comments on commit a277339

Please sign in to comment.