Replies: 2 comments
-
Hi @Muffinman, take a look here: Please give us feedback. Thanks |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'll give that a try but I'm not sure it will solve the problem in my case. I do want there to be multiple jobs, and I don't really mind which server picks them up. What I dont want is the landlord schedule to run the Tenant specific jobs, and vice versa. I need a way to check Is there a documented way to run the Laravel schedule with multitenancy? |
Beta Was this translation helpful? Give feedback.
-
Hi,
As far as I can see it's not documented here what you should actually put in your crontab to run tenant schedules. I'm assuming you need both:
We have a package service provider which is scheduling commands like this:
DearImportProductsCommand::class
andDearImportCustomersCommand::class
are bothTenantAware
.With the above setup I end up with the following schedules:
This isn't great because:
I an ideal world it would only try to run the tenant commands on the tenant schedule run. Is this possible? Could it be documented?
Beta Was this translation helpful? Give feedback.
All reactions