From e88f679c878efa791f682ce22556d10b50c01ab5 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 30 Mar 2023 13:05:35 +0200 Subject: [PATCH] [FIX] runbot: fix python step wakeup --- runbot/models/build_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index ff8d7f99..9e6fb1eb 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -321,8 +321,9 @@ class ConfigStep(models.Model): 'PatchSet': PatchSet, } - def _run_python(self, build, log_path): + def _run_python(self, build, log_path, force=False): eval_ctx = self.make_python_ctx(build) + eval_ctx['force'] = force try: safe_eval(self.python_code.strip(), eval_ctx, mode="exec", nocopy=True) run = eval_ctx.get('run')