From 89ae86492fcc5588da01125457edfc2f64dce267 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 19 Jan 2020 15:43:39 +0100 Subject: [PATCH] If the latest build is still running then we should wait and not process events --- platypush/backend/travisci.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platypush/backend/travisci.py b/platypush/backend/travisci.py index 4b134d4b76..e86b28330a 100644 --- a/platypush/backend/travisci.py +++ b/platypush/backend/travisci.py @@ -65,6 +65,9 @@ class TravisciBackend(Backend): last_build = builds[0] last_build_finished_at = self._convert_iso_date(last_build.get('finished_at', 0)) + if not last_build_finished_at: + return + if self._last_build_finished_at and last_build_finished_at <= self._last_build_finished_at: return