You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When threading is used for running workers (or if used just for generator), a modification is necessary for resources to work.
The resources object is held as a class attribute in Resources, which has a copy on each worker. This object contains the attribute self.worker_resources which contains the resource sets assigned to the current worker at a any point in time and is updated during the run. Currently, when using threads, this will be a single object and updated each time any worker updates it's resource sets.
One solution could be that when using threads, an array is used for self.worker_resources, and each worker points to it's own part of the array. If just running a generator on a thread, then there may be a self.gen_resources used.
The text was updated successfully, but these errors were encountered:
When threading is used for running workers (or if used just for generator), a modification is necessary for resources to work.
The resources object is held as a class attribute in Resources, which has a copy on each worker. This object contains the attribute
self.worker_resources
which contains the resource sets assigned to the current worker at a any point in time and is updated during the run. Currently, when using threads, this will be a single object and updated each time any worker updates it's resource sets.One solution could be that when using threads, an array is used for
self.worker_resources
, and each worker points to it's own part of the array. If just running a generator on a thread, then there may be aself.gen_resources
used.The text was updated successfully, but these errors were encountered: