django - How to release log from celery task -


i have celery task calling django management command using call_command , management command uses python logging framework create timedrotatingfilehandler.

on windows test station, getting following stack trace seems show celery tasks still holding log file handle open after have completed:

traceback (most recent call last):   file "c:\python27\lib\logging\handlers.py", line 77, in emit     self.dorollover()   file "c:\python27\lib\logging\handlers.py", line 350, in dorollover     os.rename(self.basefilename, dfn)   windowserror: [error 32] process cannot access file because being used process   logged file mycommand.py, line xx 

is known issue , if there method getting around it? (i have tried googling not find relevant).


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -