CronSchedulerOptions class
Options for creating a cron scheduler.
Constructors
-
CronSchedulerOptions({required void onFire(String prompt), required bool isLoading(), bool assistantMode = false, void onFireTask(CronTask task)?, void onMissed(List<
CronTask> tasks)?, String? dir, String? lockIdentity, CronJitterConfig getJitterConfig()?, bool isKilled()?, bool filter(CronTask t)?}) -
const
Properties
- assistantMode → bool
-
When true, bypasses the isLoading gate and auto-enables the scheduler.
final
- dir → String?
-
Directory containing .neomage/scheduled_tasks.json.
final
- filter → bool Function(CronTask t)?
-
Per-task gate applied before any side effect.
final
- getJitterConfig → CronJitterConfig Function()?
-
Returns the cron jitter config to use for this tick.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isKilled → bool Function()?
-
Killswitch: polled once per check() tick.
final
- isLoading → bool Function()
-
While true, firing is deferred to the next tick.
final
- lockIdentity → String?
-
Owner key written into the lock file.
final
- onFire → void Function(String prompt)
-
Called when a task fires (regular or missed-on-startup).
final
- onFireTask → void Function(CronTask task)?
-
When provided, receives the full CronTask on normal fires (and onFire is
NOT called for that fire).
final
-
onMissed
→ void Function(List<
CronTask> tasks)? -
When provided, receives the missed one-shot tasks on initial load.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited