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);
|
$start = microtime(true);
|
||||||
$runtime = null;
|
$runtime = null;
|
||||||
$job_status = self::STATUS_RUNNING;
|
$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))
|
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'];
|
$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,
|
$job_status,
|
||||||
$runtime,
|
$runtime,
|
||||||
json_encode($response),
|
json_encode($response),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user