Store started timestamp on job completion

This commit is contained in:
Oliver Gorwits
2014-06-03 22:18:47 +01:00
parent 37dbb9527c
commit 6a18a3d65b
2 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
* Fix for device counts in VLAN Inventory report * Fix for device counts in VLAN Inventory report
* Forward port housekeeping/schedule and expiry/expire legacy config * Forward port housekeeping/schedule and expiry/expire legacy config
* Store started timestamp on job completion
2.027007 - 2014-05-27 2.027007 - 2014-05-27

View File

@@ -150,7 +150,7 @@ sub jq_defer {
schema('netdisco')->txn_do(sub { schema('netdisco')->txn_do(sub {
schema('netdisco')->resultset('Admin') schema('netdisco')->resultset('Admin')
->find($job->id, {for => 'update'}) ->find($job->id, {for => 'update'})
->update({ status => 'queued' }); ->update({ status => 'queued', started => undef });
}); });
$happy = true; $happy = true;
}; };
@@ -169,6 +169,7 @@ sub jq_complete {
->find($job->id, {for => 'update'})->update({ ->find($job->id, {for => 'update'})->update({
status => $job->status, status => $job->status,
log => $job->log, log => $job->log,
started => $job->started,
finished => $job->finished, finished => $job->finished,
}); });
}); });