Replies: 3 comments 6 replies
-
What driver are you using? |
Beta Was this translation helpful? Give feedback.
-
What's the place of your tenant jobs? Landlord database? |
Beta Was this translation helpful? Give feedback.
-
Can you please advise how to send a tenant-aware event to the landlord's database? When I dispatch the event in the pure form it does save it in the database for the tenant (including the tenantId in the payload).
Any advise is appreciated. |
Beta Was this translation helpful? Give feedback.
-
I've noticed a few issues here on that but couldn't find my case, apologies if that has been already answered.
I have Event, Listener(ShouldQueue) and Notification(ShouldQueue) -> for the tenants.
I have a Job for the landlord.
When I run the
php artisan queue:work
it executes the landlord's Job and nothing else.If I try to run the
php artisan tenants:artisan "queue:work" --tenant={the id}
it shows that executes for the tenant but the job remains in the database unexecuted.I have tried adding
TenantAware
to both listener and notification (they did get tenantId in the job), tried adding both to thetenant_aware_jobs
and toqueueable_to_job => as 'notification' //each
and also thequeues_are_tenant_aware_by_default => true
. I know all these are supposed to be resolving the same but none of them let me execute the tenant's jobs.Can you please advise?
Beta Was this translation helpful? Give feedback.
All reactions