tenancy-docs icon indicating copy to clipboard operation
tenancy-docs copied to clipboard

Little or no detail on how Queues work

Open chibyk101 opened this issue 1 year ago • 0 comments

The documentation for Queues isn't clear enough without a played scenario or clear example.

An example like; I have a Scheduled job that sends email to all subscribers every Tuesday.

  • Do I schedule my job like I would always do in a regular laravel app and don't worry about tenancy because it will be taken care of by the QueueTenancyBootstrapper
  • Do I loop through all tenants in my Job handle() method?
  • Do I loop through all tenants in my console/kernel.php inside of the call method like so $schedule->call(initialize tenant and dispatch....)->tuesdays()

Using a clear example would make it easier to understand even for a newbie

chibyk101 avatar Nov 18 '24 20:11 chibyk101