You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:48:59 UTC
[buildstream] 18/27: WIP: don't pickle plugins
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch aevri/check_spawn_ci_working
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 798b68fe673c47ce74e8f293cef2ea7692b0cdfd
Author: Angelos Evripiotis <je...@bloomberg.net>
AuthorDate: Thu Oct 17 08:52:08 2019 +0100
WIP: don't pickle plugins
---
src/buildstream/plugin.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py
index e269a4b..dd8203a 100644
--- a/src/buildstream/plugin.py
+++ b/src/buildstream/plugin.py
@@ -726,6 +726,9 @@ class Plugin():
raise NotImplementedError("{tag} plugin '{kind}' does not implement _get_args_for_child_job_pickling()".format(
tag=self.__type_tag, kind=self.get_kind()))
+ def __getstate__(self):
+ raise Exception("Do not pickle plugins")
+
#############################################################
# Local Private Methods #
#############################################################