24 May 2024 04:50 AM - edited 24 May 2024 04:51 AM
So basically I build an extension that runs a query to an API endpoint and later does stuff.
Basically:
I noticed a few pending tasks in the system that I'm querying. (the extension didn't consume it via the API Query) and change the Status. So I started checking the logs of the extension in the OA: logs of the extension shows
{"extension":"custom:EXTENSION","tasks":[{"configId":"7c900c4b-a86f-36e0-be49-812ebd64d079","taskId":"python-7c900c4b-a86f-36e0-be49-812ebd64d079","PID":"1530705","executionStatuses":[{"status":"IDLE","message":"IDLE","timestamp":"2024-05-24 03:14:55.138 UTC"},{"status":"OK","message":"OK","timestamp":"2024-05-24 03:24:55.381 UTC"},{"status":"OK","message":"OK","timestamp":"2024-05-24 03:25:25.409 UTC"}],"processStatuses":[{"status":"OK","message":"","timestamp":"2024-05-24 03:25:31.540 UTC"}]}]}
Over and over al;l day. Now, the extension also popups its Logs, when starting to reach the OAuth when is working.
Basically, at the start of def query (self) I have self.logger.info("query method started for EXTENSION.") and at the end self.logger.info("query method ended for EXTENSION.")
and I noticed that those outputs stopped showing up at some point, wo I would assume that the query(self) is not running for some reason. The extension keeps sending an OK so there is no error. The last execution ended with no error.
Can we debug anything at the ECC to understand why stops? This one was a local extension (runs in oneagent) so restarting the OA fixed the issue.
Cheers.
24 May 2024 03:52 PM
Sure, created 327250.
Cheers and have a nice weekend.