13 use Symfony\Component\HttpFoundation\Request;
14 use Symfony\Component\HttpFoundation\JsonResponse;
18 const NAME =
"jobstatus";
22 function __construct()
24 parent::__construct(self::NAME, array(
35 protected function handle(Request $request)
38 $jobInfo = $this->
dbManager->getSingleRow(
39 "SELECT jq_end_bits FROM jobqueue WHERE jq_end_bits = '0' LIMIT 1;");
40 if (empty($jobInfo)) {
45 $status = empty($status) ? JsonResponse::HTTP_INTERNAL_SERVER_ERROR : JsonResponse::HTTP_OK;
46 return new JsonResponse(array(
"status" => $response), $status);
50 register_plugin(
new AjaxJobStatus());
Contains the constants and helpers for authentication of user.
handle(Request $request)
: returns 1 when jobs are running else 0
ReportCachePurgeAll()
Purge all records from the report cache.
fo_dbManager * dbManager
fo_dbManager object