Skip to content

Commit

Permalink
added object check
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Jun 22, 2024
1 parent 7dd21d9 commit 17e47d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/masonite/drivers/queue/DatabaseDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def consume(self):
getattr(obj, callback)(*args)

except AttributeError:
obj(*args)
if callable(obj):
obj(*args)

self.success(
f"[{job['id']}][{pendulum.now(tz=self.options.get('tz', 'UTC')).to_datetime_string()}] Job Successfully Processed"
Expand Down

0 comments on commit 17e47d0

Please sign in to comment.