Store started timestamp on job completion
This commit is contained in:
		| @@ -10,6 +10,7 @@ | ||||
|  | ||||
|   * Fix for device counts in VLAN Inventory report | ||||
|   * Forward port housekeeping/schedule and expiry/expire legacy config | ||||
|   * Store started timestamp on job completion | ||||
|  | ||||
| 2.027007 - 2014-05-27 | ||||
|  | ||||
|   | ||||
| @@ -150,7 +150,7 @@ sub jq_defer { | ||||
|     schema('netdisco')->txn_do(sub { | ||||
|       schema('netdisco')->resultset('Admin') | ||||
|         ->find($job->id, {for => 'update'}) | ||||
|         ->update({ status => 'queued' }); | ||||
|         ->update({ status => 'queued', started => undef }); | ||||
|     }); | ||||
|     $happy = true; | ||||
|   }; | ||||
| @@ -169,6 +169,7 @@ sub jq_complete { | ||||
|         ->find($job->id, {for => 'update'})->update({ | ||||
|           status => $job->status, | ||||
|           log    => $job->log, | ||||
|           started  => $job->started, | ||||
|           finished => $job->finished, | ||||
|         }); | ||||
|     }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user