You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have overridden the TenantTask class provided by tenant-schemas-celery for our use-case - consider it to be named as DerivedTenantTask
There exists a task, defined as, for example:
@app.task
def my_task(arg1, arg2):
...
Issue:
tenant-schemas-celery's CeleryApp.create_task_cls hardcodes "tenant_schemas_celery.task:TenantTask" as the base class that all tasks will be subclassed from
Due to this, even though we're specifying our custom DerivedTenantTask as the base task_cls for our celery app, all tasks where the base is not explicity mentioned in the @app.task decorator are being subclassed from tenant-schemas-celery's TenantTask and due to this, the custom logic we've written in our DerivedTenantTask class is not being executed
Request:
Please keep the celery app's task_cls attribute in tenant-schemas-celery's CeleryApp.create_task_cls:
Context:
TenantTask
class provided bytenant-schemas-celery
for our use-case - consider it to be named asDerivedTenantTask
Issue:
tenant-schemas-celery
'sCeleryApp.create_task_cls
hardcodes"tenant_schemas_celery.task:TenantTask"
as the base class that all tasks will be subclassed fromDerivedTenantTask
as the basetask_cls
for our celery app, all tasks where the base is not explicity mentioned in the@app.task
decorator are being subclassed fromtenant-schemas-celery
'sTenantTask
and due to this, the custom logic we've written in ourDerivedTenantTask
class is not being executedRequest:
task_cls
attribute intenant-schemas-celery
'sCeleryApp.create_task_cls
:The text was updated successfully, but these errors were encountered: