Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Threads seem to multiply with each execution #65

Open
10 tasks
lucboudreau opened this issue Feb 21, 2021 · 1 comment
Open
10 tasks

Threads seem to multiply with each execution #65

lucboudreau opened this issue Feb 21, 2021 · 1 comment

Comments

@lucboudreau
Copy link

Describe the bug

I've been getting crashes for a while. In the pyhydroquebec logs, the log entries seem to be copied 2, then 3, then 4 times and so one until the docker image crashes and restarts.

To Reproduce

I run pyhydroquebec in docker as described here.

#49 (comment)

Expected behavior
Shouldn't crash repeatedly :)

This is what I get in my logs.

2021-02-20 20:50:49,640 - INFO - mqtt-hydroquebec - Initializing...
2021-02-20 20:50:49,642 - INFO - mqtt-hydroquebec - Start main process
2021-02-20 20:50:49,642 - INFO - mqtt-hydroquebec - Connecting to MQTT server
2021-02-20 20:50:49,642 - INFO - mqtt-hydroquebec - Reaching MQTT server
2021-02-20 20:50:49,643 - INFO - pyhydroquebec - Log in using user@example.com
2021-02-20 20:50:52,569 - INFO - pyhydroquebec - fetching customers
2021-02-20 20:50:52,725 - INFO - pyhydroquebec.customer.0123456789 - Fetching summary page
2021-02-20 20:50:52,725 - INFO - pyhydroquebec - Selecting customer 0123456789
2021-02-20 20:50:59,687 - INFO - pyhydroquebec - Customer 0123456789 selected
2021-02-20 20:51:05,174 - INFO - pyhydroquebec.customer.0123456789 - Fetching current period data
2021-02-20 20:51:09,500 - INFO - pyhydroquebec.customer.0123456789 - Fetching daily data between 2021-02-19 and 2021-02-19
2021-02-20 20:51:09,561 - INFO - mqtt-hydroquebec - Waiting for 10800 seconds before the next check
2021-02-20 23:51:26,086 - INFO - pyhydroquebec - Log in using user@example.com
2021-02-20 23:51:26,086 - INFO - pyhydroquebec - Log in using user@example.com
2021-02-20 23:51:28,234 - INFO - pyhydroquebec - fetching customers
2021-02-20 23:51:28,234 - INFO - pyhydroquebec - fetching customers
2021-02-20 23:51:29,318 - INFO - pyhydroquebec.customer.0123456789 - Fetching summary page
2021-02-20 23:51:29,318 - INFO - pyhydroquebec.customer.0123456789 - Fetching summary page
2021-02-20 23:51:29,318 - INFO - pyhydroquebec - Selecting customer 0123456789
2021-02-20 23:51:29,318 - INFO - pyhydroquebec - Selecting customer 0123456789
2021-02-20 23:51:42,850 - INFO - pyhydroquebec - Customer 0123456789 selected
2021-02-20 23:51:42,850 - INFO - pyhydroquebec - Customer 0123456789 selected
2021-02-20 23:51:51,807 - INFO - pyhydroquebec.customer.0123456789 - Fetching current period data
2021-02-20 23:51:51,807 - INFO - pyhydroquebec.customer.0123456789 - Fetching current period data
2021-02-20 23:51:57,261 - INFO - pyhydroquebec.customer.0123456789 - Fetching daily data between 2021-02-19 and 2021-02-19
2021-02-20 23:51:57,261 - INFO - pyhydroquebec.customer.0123456789 - Fetching daily data between 2021-02-19 and 2021-02-19
2021-02-20 23:51:57,309 - INFO - mqtt-hydroquebec - Waiting for 10800 seconds before the next check
2021-02-21 02:52:14,064 - INFO - pyhydroquebec - Log in using user@example.com
2021-02-21 02:52:14,064 - INFO - pyhydroquebec - Log in using user@example.com
2021-02-21 02:52:14,064 - INFO - pyhydroquebec - Log in using user@example.com
2021-02-21 02:52:16,599 - INFO - pyhydroquebec - fetching customers
2021-02-21 02:52:16,599 - INFO - pyhydroquebec - fetching customers
2021-02-21 02:52:16,599 - INFO - pyhydroquebec - fetching customers
2021-02-21 02:52:16,768 - INFO - pyhydroquebec.customer.0123456789 - Fetching summary page
2021-02-21 02:52:16,768 - INFO - pyhydroquebec.customer.0123456789 - Fetching summary page
2021-02-21 02:52:16,768 - INFO - pyhydroquebec.customer.0123456789 - Fetching summary page
2021-02-21 02:52:16,769 - INFO - pyhydroquebec - Selecting customer 0123456789
2021-02-21 02:52:16,769 - INFO - pyhydroquebec - Selecting customer 0123456789
2021-02-21 02:52:16,769 - INFO - pyhydroquebec - Selecting customer 0123456789
2021-02-21 02:52:25,660 - INFO - pyhydroquebec - Customer 0123456789 selected
2021-02-21 02:52:25,660 - INFO - pyhydroquebec - Customer 0123456789 selected
2021-02-21 02:52:25,660 - INFO - pyhydroquebec - Customer 0123456789 selected
2021-02-21 02:52:31,857 - INFO - pyhydroquebec.customer.0123456789 - Fetching current period data
2021-02-21 02:52:31,857 - INFO - pyhydroquebec.customer.0123456789 - Fetching current period data
2021-02-21 02:52:31,857 - INFO - pyhydroquebec.customer.0123456789 - Fetching current period data
2021-02-21 02:52:36,380 - INFO - pyhydroquebec.customer.0123456789 - Fetching daily data between 2021-02-19 and 2021-02-19
2021-02-21 02:52:36,380 - INFO - pyhydroquebec.customer.0123456789 - Fetching daily data between 2021-02-19 and 2021-02-19
2021-02-21 02:52:36,380 - INFO - pyhydroquebec.customer.0123456789 - Fetching daily data between 2021-02-19 and 2021-02-19
2021-02-21 02:52:36,436 - INFO - mqtt-hydroquebec - Waiting for 10800 seconds before the next check

PyHydroQuebec and Python version
Latest docker images.

registry.gitlab.com/ttblt-hass/pyhydroquebec/mqtt   master    be277f330a52   16 months ago   115MB

Hydroquebec rate

Select your rate:

  • D
  • DP
  • DM
  • DT

Hydroquebec multi-contract
Do you have more than one contract with HydroQuebec ?

  • Yes
  • [x ] No

Corner Cases
Are you in one of this situations:

  • Change of address
  • Change of rate
  • Add a new contract
  • Remove an old contract
  • [ x ] No
  • Other:

Additional context

@kayrozen
Copy link

I also have this situation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants