Currently, we create a copy of all variables at every step, so that we can compare it against future iterations and check if the variable changed. However, some objects cannot be copy.deepcopyed, leading to the error "cannot pickle ___ object" being thrown.
Example code that fails:
import threading
def worker():
print('Worker thread')
threads = []
for _ in range(5):
t = threading.Thread(target=worker)
threads.append(t)
t.start()
for t in threads:
t.join()
Bug (Executor)
Currently, we create a copy of all variables at every step, so that we can compare it against future iterations and check if the variable changed. However, some objects cannot be
copy.deepcopy
ed, leading to the error "cannot pickle ___ object" being thrown.Example code that fails: