This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch aevri/picklable_jobs in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 4973332a7bfad81ca77a0399c7b7f2145f50622d Author: Angelos Evripiotis <[email protected]> AuthorDate: Tue Apr 2 13:33:51 2019 +0100 WIP: pickle: FetchQueue - not needed? --- src/buildstream/_scheduler/queues/fetchqueue.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/buildstream/_scheduler/queues/fetchqueue.py b/src/buildstream/_scheduler/queues/fetchqueue.py index 9edeebb..50ad2b8 100644 --- a/src/buildstream/_scheduler/queues/fetchqueue.py +++ b/src/buildstream/_scheduler/queues/fetchqueue.py @@ -35,6 +35,12 @@ class FetchQueue(Queue): complete_name = "Fetched" resources = [ResourceType.DOWNLOAD] + def __getstate__(self): + import copy + state = copy.copy(self.__dict__) + del state['_scheduler'] + return state + def __init__(self, scheduler, skip_cached=False, fetch_original=False): super().__init__(scheduler)
