AshOban.Info (ash_oban v0.7.0)
View SourceIntrospection for AshOban
Summary
Functions
The Domain to use when calling actions on this resource. Defaults to the resource's domain.
The Domain to use when calling actions on this resource. Defaults to the resource's domain.
A list of tenants or a function behaviour that returns a list of tenants a trigger should be run for. Can be overwritten on the trigger level.
A list of tenants or a function behaviour that returns a list of tenants a trigger should be run for. Can be overwritten on the trigger level.
oban DSL options
oban.scheduled_actions DSL entities
If set to true, the ash_oban?: true flag will be placed in shared context instead of regular context.
Shared context propagates to related actions called via manage_relationship and can be passed to other
action invocations using the context as scope, making it easier to detect AshOban execution in nested actions.
Can be overridden per trigger or scheduled action.
oban.triggers DSL entities
Default value for use_tenant_from_record? for all triggers in this resource.
When set to true, tenants will be extracted from each record's tenant attribute
and used when workers process those records. This allows schedulers to use
multitenancy :allow_global read actions to find records across all tenants,
while worker actions still run with the correct tenant context for each record.
Functions
The Domain to use when calling actions on this resource. Defaults to the resource's domain.
The Domain to use when calling actions on this resource. Defaults to the resource's domain.
@spec oban_list_tenants(dsl_or_extended :: module() | map()) :: {:ok, [any()] | module() | tuple() | (-> any())} | :error
A list of tenants or a function behaviour that returns a list of tenants a trigger should be run for. Can be overwritten on the trigger level.
@spec oban_list_tenants!(dsl_or_extended :: module() | map()) :: ([any()] | module() | tuple() | (-> any())) | no_return()
A list of tenants or a function behaviour that returns a list of tenants a trigger should be run for. Can be overwritten on the trigger level.
oban DSL options
Returns a map containing the and any configured or default values.
@spec oban_scheduled_action(Ash.Resource.t() | Spark.Dsl.t(), atom()) :: nil | AshOban.Schedule.t()
oban.scheduled_actions DSL entities
@spec oban_trigger(Ash.Resource.t() | Spark.Dsl.t(), atom()) :: nil | AshOban.Trigger.t()
oban.triggers DSL entities
@spec oban_triggers_and_scheduled_actions(Ash.Resource.t() | Spark.Dsl.t()) :: [ AshOban.Trigger.t() | AshOban.Schedule.t() ]
Default value for use_tenant_from_record? for all triggers in this resource.
When set to true, tenants will be extracted from each record's tenant attribute
and used when workers process those records. This allows schedulers to use
multitenancy :allow_global read actions to find records across all tenants,
while worker actions still run with the correct tenant context for each record.
Can be overridden per trigger.
@spec pro?() :: boolean()