26 include_once(__DIR__ .
"/../agent/version.php");
34 const CONFLICT_STRATEGY_FLAG =
"-k";
36 function __construct()
38 $this->Name =
"agent_deciderjob";
39 $this->Title = _(
"Automatic User License Decider");
40 $this->AgentName = AGENT_DECIDER_JOB_NAME;
42 parent::__construct();
58 public function AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $conflictStrategyId=null)
60 $dependencies[] =
"agent_adj2nest";
63 if ($jobQueueId != 0) {
67 $args = ($conflictStrategyId !== null) ? $this::CONFLICT_STRATEGY_FLAG.$conflictStrategyId :
'';
69 return $this->
doAgentAdd($jobId, $uploadId, $errorMsg, $dependencies, $uploadId, $args);
IsAlreadyScheduled($job_pk, $AgentName, $upload_pk)
Check if an agent is already scheduled in a job.
AgentAdd($jobId, $uploadId, &$errorMsg, $dependencies=array(), $conflictStrategyId=null)
DeciderJobAgent's UI.
UI plugin for DeciderJobAgent.
doAgentAdd($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null)