11 include_once(dirname(__DIR__) .
"/agent/version.php");
15 public function __construct()
17 $this->Name =
"spasht";
18 $this->Title = _(
"Spasht Analysis");
19 $this->AgentName =
"spasht";
21 parent::__construct();
43 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=[],
44 $arguments=
null, $request=
null, $unpackArgs=
null)
46 $dependencies[] =
"agent_adj2nest";
49 if ($jobQueueId != 0) {
53 $args = is_array($arguments) ?
'' : $arguments;
54 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, $dependencies, $uploadId, $args, $request);
64 return CheckARS($uploadId, $this->AgentName,
"spasht agent",
"spasht_ars");
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null, $request=null)
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=[], $arguments=null, $request=null, $unpackArgs=null)
AgentHasResults($uploadId=0)
CheckARS($upload_pk, $AgentName, $AgentDesc, $AgentARSTableName)
Check the ARS table to see if an agent has successfully scanned an upload.
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.