Job Queue for file read , commission calculation , BDS entry
This commit is contained in:
parent
5b6564dd1c
commit
d59694c3ee
@ -115,7 +115,7 @@ class JobWorker extends BaseController
|
||||
$start = microtime(true);
|
||||
$runtime = null;
|
||||
$job_status = self::STATUS_RUNNING;
|
||||
$db->query("UPDATE jobs SET status=? WHERE id=? AND uuid=?", [$job_status, $job->id,$job->uuid]);
|
||||
$db->query("UPDATE partner_jobs SET status=? WHERE id=? AND uuid=?", [$job_status, $job->id,$job->uuid]);
|
||||
|
||||
if (!array_key_exists($job->name,SELF::$event_class_mapping))
|
||||
{
|
||||
@ -194,7 +194,7 @@ class JobWorker extends BaseController
|
||||
$response = ['file_name' => $e->getFile(),'error' => $e->getMessage(),'line_no' => $e->getLine(),'info' => $e->getTraceAsString(),'scope' => 'worker failed'];
|
||||
}
|
||||
|
||||
$db->query("UPDATE jobs SET status=?, run_time=?, response=? WHERE id=? AND uuid=?", [
|
||||
$db->query("UPDATE partner_jobs SET status=?, run_time=?, response=? WHERE id=? AND uuid=?", [
|
||||
$job_status,
|
||||
$runtime,
|
||||
json_encode($response),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user