Skip to content

Commit

Permalink
worker is just executioner of tasks.
Browse files Browse the repository at this point in the history
most attributes are tied to Task
  • Loading branch information
komuw committed Feb 23, 2019
1 parent dd977ef commit e046a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xyzabc/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ def _validate_task_args(

def _sanity_check_logger(self, event):
"""
called when instantiating the Task just to make sure the supplied
logger can log.
Called when we want to make sure the supplied logger can log.
This usually happens when we are instantiating a xyzabc.Task or a xyzabc.Worker
"""
try:
self.logger.log(logging.DEBUG, {"event": event})
Expand Down

0 comments on commit e046a06

Please sign in to comment.