Use is_stoppable
@@ -13,7 +13,7 @@ class BuildJobHandler(BaseHandler):
@classmethod
def _handle_build_job_cleaned_triggered(cls, event: 'Event') -> None:
instance = event.instance
- if not instance or not instance.has_specification or not instance.is_running:
+ if not instance or not instance.has_specification or not instance.is_stoppable:
return
celery_app.send_task(
