Skip to content

Commit

Permalink
Better error messages when task with no persistent ID are added to th…
Browse files Browse the repository at this point in the history
…e Engine.
  • Loading branch information
riccardomurri committed Apr 18, 2018
1 parent fca92d5 commit 9b9d687
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gc3libs/core.py
Expand Up @@ -1493,8 +1493,8 @@ def add(self, task):
self._tasks_by_id[task.persistent_id] = task
except AttributeError:
gc3libs.log.debug(
"Task %s added to Engine %s with no persistent ID!",
task, self)
"Engine %s: Added task %s with no persistent ID!",
self, task)
task.attach(self)


Expand All @@ -1517,8 +1517,8 @@ def remove(self, task, _override_queue=None):
pass
except AttributeError:
gc3libs.log.debug(
"Task %s added to Engine %s with no persistent ID!",
task, self)
"Engine %s: Cannot remove task %s: has no persistent ID!",
self, task)
task.detach()


Expand Down

0 comments on commit 9b9d687

Please sign in to comment.