Class PostgresWeaselOptions
- Namespace
- Quartz
- Assembly
- Quartz.Weasel.PostgreSQL.dll
How UseWeaselForPostgres applies a scheduler's schema.
public sealed class PostgresWeaselOptions
- Inheritance
-
PostgresWeaselOptions
- Inherited Members
Fields
DefaultLockId
The advisory lock id every apply takes by default: 0x5152545A, the bytes of QRTZ.
public const int DefaultLockId = 1364350042
Field Value
Remarks
Marten's default is 4004 and Wolverine's 4006, and PostgreSQL's advisory locks are server-wide, so Quartz's is far from both.
Properties
AutoCreate
How far the schema is applied at startup, or null to follow the active JasperFx
profile's ResourceAutoCreate when JasperFx is registered, and
JasperFx.AutoCreate.CreateOrUpdate when it is not.
public AutoCreate? AutoCreate { get; set; }
Property Value
- AutoCreate?
Remarks
JasperFx.AutoCreate.None applies nothing at startup; db-apply and
resources setup still do, and the store still validates the schema before it starts.
LockId
The PostgreSQL advisory lock every apply of this schema takes, on startup and from the command line.
public int LockId { get; set; }
Property Value
Remarks
Schedulers sharing a database may share the id: their applies then take turns, which is all the lock is for.
LockTimeout
How long an apply waits for another process holding LockId before it gives up.
public TimeSpan LockTimeout { get; set; }
Property Value
Remarks
A process that gives up fails its startup, unless the active JasperFx profile's
ResourceMigrationFailureMode is ContinueOnFailures, in which case it starts against the
schema the lock holder is applying.