Try removing this magic environment that tells the sub-process there was already an Initialized Task.
import os env = dict(**os.environ) env.pop('TRAINS_PROC_MASTER_ID', None)
🙂
Hi,
I have a main task that creates additional tasks in subprocesses. I wish to call Task.init from inside each child-task so they would be indifferent to the main task (I wish the child process to behave as if it was executed standalone). I am aware Trains attaches to subprocesses. This cause the Task.init called by the child process to receive the main task's task object, while I want it to create a new one, starting at the beginning of the child process. What can I do?
Try removing this magic environment that tells the sub-process there was already an Initialized Task.
import os env = dict(**os.environ) env.pop('TRAINS_PROC_MASTER_ID', None)
🙂