From 61c3e0d58e25d7adb1993f76d9ffd0989c1eb0f6 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 24 Aug 2018 15:12:25 +0200 Subject: [PATCH] [enh] don't run test for not working apps --- run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.py b/run.py index 789193a..bc02c62 100644 --- a/run.py +++ b/run.py @@ -103,6 +103,10 @@ async def monitor_apps_lists(): for app_id, app_data in data.items(): commit_sha = await get_master_commit_sha(app_data["git"]["url"]) + if app_data["state"] not in ("working", "validated"): + task_logger.debug(f"skip {app_id} because state is {app_data['state']}") + continue + # already know, look to see if there is new commits if app_id in repos: repo = repos[app_id]