Skip to content

Commit

Permalink
Merge pull request #803 from MasoniteFramework/hotfix/database-queue-…
Browse files Browse the repository at this point in the history
…callable

added object check
  • Loading branch information
josephmancuso authored Jun 22, 2024
2 parents 7dd21d9 + 17e47d0 commit cc1411d
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 cc1411d

Please sign in to comment.