Answer the question
In order to leave comments, you need to log in
Why does the agent deactivate itself?
Install agent:
\CAgent::AddAgent( "\\Some\\Class\\Name::createTasks();", $this->MODULE_ID, "N", 60*10, "", "Y");
Name::createTasks()
communicates with an external api. Name::createTasks()
, there are no syntax errors and the method successfully returns a response from the api. array(4) {
["STATE"]=>
string(5) "start"
["AGENT"]=>
array(6) {
["ID"]=>
string(5) "13073"
["NAME"]=>
string(38) "\Some\Class\Name::createTasks();"
["AGENT_INTERVAL"]=>
string(3) "600"
["IS_PERIOD"]=>
string(1) "N"
["MODULE_ID"]=>
string(12) "Some.module"
["RETRY_COUNT"]=>
string(1) "3"
}
["EVAL"]=>
bool(false)
["E"]=>
bool(false)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question