Current section

Files

Jump to
ash_oban usage-rules multi_tenancy_support.md
Raw

usage-rules/multi_tenancy_support.md

<!--
SPDX-FileCopyrightText: 2020 Zach Daniel
SPDX-License-Identifier: MIT
-->
# Multi-tenancy Support
AshOban supports multi-tenancy in your Ash application:
```elixir
oban do
# Global tenant configuration
list_tenants [1, 2, 3] # or a function that returns tenants
triggers do
trigger :process do
# Override tenants for a specific trigger
list_tenants fn -> [2] end
action :process
end
end
end
```