H
H
Hfnas2020-07-24 13:21:58
1C-Bitrix
Hfnas, 2020-07-24 13:21:58

What are the reasons for the agent to be active (but not running)?

Please tell me what are the reasons that the agent is active, but not running (does not write to the log), then after a while it deactivates itself.
that is, it works, it works, then once it is deactivated ... (agent on the crown)

Look, I put down an entry in the logs:
I see the following

public static function Start(){
   
    AddMessage2Log("18", "module");
    try {
        AddMessage2Log( date("d.m.Y H:i:s")."BEfore new MsService()", "module");
        $myImport = new MsSer();
        AddMessage2Log( date("d.m.Y H:i:s")."new MsSer()", "module");

        $myImport->__destruct();
        AddMessage2Log("__destruct()", "module");
    }
    catch (SystemException $exception)
    {
        AddMessage2Log( date("d.m.Y H:i:s")."BEfore SystemException", "module");
     
        AddMessage2Log("SystemException", "module");
    }
    AddMessage2Log(date("d.m.Y H:i:s")."before return", "module");

    return 'MsAgent::Start();';
}


everything is trampled for half an hour with AddMessage2Log("18", "module"), cron every 10 minutes, it doesn't go any further... then it suddenly breaks further...try.
Date: 2020-07-25 07:25:00
Module: module
18
Date: 2020-07-25 07:35:02
Module: module
18
Date: 2020-07-25 07:45:01
Module: module
18

and then went below try....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-07-24
Madzhugin @Suntechnic

The agent function crashes with an error under some conditions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question