You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:22:05 UTC
[buildstream] 15/33: WIP: pickle: FetchQueue - not needed?
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch aevri/picklable_jobs
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 4973332a7bfad81ca77a0399c7b7f2145f50622d
Author: Angelos Evripiotis <je...@bloomberg.net>
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)