onStop call back not called immediatly

Python and python framework

Moderator: leecollings

Post Reply
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

onStop call back not called immediatly

Post by pipiche »

Since few version of Domoticz, I see often the onStop call back taking several seconds to be call after a stop of the plugin from the Hardware menu
Don't know if that come from the recent changes on Domoticz Mutex or from the Plugin Framework changes but that is anoying as some time, we never get the onStop !!!

Here after is an example

- Stop directive call at 21:11:00.918
- onStop call back inside the plugin 21:11:41.596

Code: Select all

Mar 27 21:11:00 rasp domoticz[32398]: 2021-03-27 21:11:00.749  Python Plugin System: (DIN3-Zigate) Firmware debug ==> 9996 - Ep: 01 Event: 03e001
Mar 27 21:11:00 rasp domoticz[32398]: 2021-03-27 21:11:00.918  Status: Python Plugin System: (DIN3-Zigate) Stop directive received.
Mar 27 21:11:02 rasp domoticz[32398]: 2021-03-27 21:11:02.189  Python Plugin System: (DIN3-Zigate) Zigate receive message processing time Max: 61 ms with an of average: 14 ms
Mar 27 21:11:02 rasp domoticz[32398]: 2021-03-27 21:11:02.525  Python Plugin System: (DIN3-Zigate) Zigate receive message processing time Max: 78 ms with an of average: 16 ms
Mar 27 21:11:05 rasp domoticz[32398]: 2021-03-27 21:11:05.113  Python Plugin System: (DIN3-Zigate) Zigate receive message processing time Max: 351 ms with an of average: 23 ms
Mar 27 21:11:41 rasp domoticz[32398]: 2021-03-27 21:11:41.593  Status: Python Plugin System: (DIN3-Zigate) Start Web Server connection
Mar 27 21:11:41 rasp domoticz[32398]: 2021-03-27 21:11:41.594  CConnection_listen, listen request from 'DIN3-Zigate' ignored. Plugin is stopping.
Mar 27 21:11:41 rasp domoticz[32398]: 2021-03-27 21:11:41.595  Status: Python Plugin System: (DIN3-Zigate) Web backend for Web User Interface started on port: 9440
Mar 27 21:11:41 rasp domoticz[32398]: 2021-03-27 21:11:41.595  Status: Python Plugin System: (DIN3-Zigate) Plugin with Zigate firmware 031e correctly initialized
Mar 27 21:11:41 rasp domoticz[32398]: 2021-03-27 21:11:41.596  Status: Python Plugin System: (DIN3-Zigate) onStop called
plugge

Re: onStop call back not called immediatly

Post by plugge »

Maybe you could tell the readers which domoticz version worked for you and at which version it didn't.
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: onStop call back not called immediatly

Post by pipiche »

plugge wrote: Saturday 27 March 2021 21:54 Maybe you could tell the readers which domoticz version worked for you and at which version it didn't.
I cannot really say at what version I started to have the problem, but it started since maximum 2 weeks, and I more-less have a daily build .
The logs I have included here are with Domoticz 13119
Post Reply