Skip to content

Commit

Permalink
Merge pull request #75 from ju5t/add-multitenancy-to-readme
Browse files Browse the repository at this point in the history
chore: add multitenancy documentation
  • Loading branch information
freekmurze authored Apr 30, 2022
2 parents ce531a9 + 6b1ffc3 commit 658cbbd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,20 @@ protected function schedule(Schedule $schedule)

The output will be stored in the `monitored_scheduled_task_log_items` table, in the `output` key of the `meta` column.

### Multitenancy

If you're using [spatie/laravel-multitenancy](https://github.com/spatie/laravel-multitenancy) you should add the `PingOhDearJob` to
the `not_tenant_aware_jobs` array in `config/multitenancy.php`.

```php
'not_tenant_aware_jobs' => [
// ...
\Spatie\ScheduleMonitor\Jobs\PingOhDearJob::class,
]
```

Without it, the `PingOhDearJob` will fail as no tenant will be set.

### Getting notified when a scheduled task doesn't finish in time

This package can sync your schedule with the [Oh Dear](https://ohdear.app) cron check. Oh Dear will send you a notification whenever a scheduled task does not finish on time.
Expand Down

0 comments on commit 658cbbd

Please sign in to comment.