From 17e47d0793245aeef5fb8c987edf4da8e9f427ed Mon Sep 17 00:00:00 2001 From: Joe Mancuso Date: Fri, 21 Jun 2024 22:19:50 -0400 Subject: [PATCH] added object check --- src/masonite/drivers/queue/DatabaseDriver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/masonite/drivers/queue/DatabaseDriver.py b/src/masonite/drivers/queue/DatabaseDriver.py index dba74141d..4b38d3fe2 100644 --- a/src/masonite/drivers/queue/DatabaseDriver.py +++ b/src/masonite/drivers/queue/DatabaseDriver.py @@ -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"