Skip to content

Commit

Permalink
Have a Task react only to *its own* state changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Apr 27, 2018
1 parent cc2d8b1 commit e165573
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gc3libs/__init__.py
Expand Up @@ -630,6 +630,8 @@ def wait(self, interval=60):
#

def _on_state_change(self, event):
if id(event.task) != id(self):
return
handler_name = event.to_state.lower()
gc3libs.log.debug(
"Calling state-transition handler '%s' on %s ...",
Expand Down

0 comments on commit e165573

Please sign in to comment.