If the latest build is still running then we should wait and not process events

This commit is contained in:
Fabio Manganiello 2020-01-19 15:43:39 +01:00
parent db862d1d96
commit 89ae86492f

View file

@ -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