INFO Start step 200 'Generate supply plan' disconnect when run over 1 HR #644
-
Our Frepple version is 6.25 As mentioned in #643 INFO Start step 200 'Generate supply plan' at 14:45:50 When this task exceed 1 hr, it will surely trigger following error: This error shows in log file, while Task Status in Frepple UI don't show Failed and remain running state. Guess there has some setting cut off the task right after 1 hour. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This looks like postgresql cutting the connection. There are settings on postgres to restrict excessiblely long queries or connections - eg statement_timeout |
Beta Was this translation helpful? Give feedback.
-
I solve this issue by manually close old connection: freppledb\common\commands.py but root cause still not found. |
Beta Was this translation helpful? Give feedback.
I solve this issue by manually close old connection:
freppledb\common\commands.py
class PlanTaskSequence(PlanTask):
def run():
from django.db import close_old_connections
close_old_connections()
but root cause still not found.
guess caused by either psycopg2 or my infra environment settings