Open ricardoprins opened 2 years ago
Thanks for the report @ricardoprins. I can see that the problem is the SqliteLogger does not yet support fork()
:
Would you like to have a go at implementing it?
Cheers, Chris
Sure, I'll try!
Would simply doing this work, or are there any problems I'm unaware of?
The fork()
method is already implemented in the CompilerEnvWrapper
class, which the logger inherits from.
def fork(self):
return super().fork()
Would simply doing this work, or are there any problems I'm unaware of?
The
fork()
method is already implemented in theCompilerEnvWrapper
class, which the logger inherits from.def fork(self): return super().fork()
Not quite. You would need to make sure to construct a new SliteLoggerWrapper
class and pass in the right constructor arguments so that the forked environment writes to the same database.
Cheers, Chris
The code below was executed from a Google Colab Notebook:
and here's the traceback: