Skip to content

Commit

Permalink
correctly check for synthetic killed event
Browse files Browse the repository at this point in the history
Co-authored-by: Jen Patague <[email protected]>
  • Loading branch information
nemacysts and jfongatyelp authored May 9, 2024
1 parent 04bddd7 commit 0052066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tron/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def _handle_task_event(self, event: Event) -> None:
# workaround logic runs but k8s sends the correct event faster than we can send our synthetic
# one and the hackiness of this is somewhat removed by the `event.raw` check - that should only
# exclude our synthetic event.
if not event.platform_type == "killed" and event.raw is None:
if not (event.platform_type == "killed" and event.raw is None):
log.warning(f"Got event for unknown task ({task_id} not in {self.tasks.keys()}): {event}")
return

Expand Down

0 comments on commit 0052066

Please sign in to comment.