Class MySqlWeaselOptions
- Namespace
- Quartz
- Assembly
- Quartz.Weasel.MySQL.dll
How UseWeaselForMySql applies a scheduler's schema.
public sealed class MySqlWeaselOptions
- Inheritance
-
MySqlWeaselOptions
- Inherited Members
Fields
DefaultLockName
The user lock every apply takes by default: quartz:migrate.
public const string DefaultLockName = "quartz:migrate"
Field Value
Remarks
A MySQL user lock is scoped to the server, not to a database, so schedulers on different databases of one server take turns on it too. Give each its own LockName to keep them apart.
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.
LockName
The GET_LOCK name every apply of this schema takes, on startup and from the command line.
At most 64 characters.
public string LockName { get; set; }
Property Value
LockTimeout
How long an apply waits for another session holding LockName 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.