CronTask class
A scheduled cron task.
Constructors
Properties
- agentId → String?
-
Runtime-only. When set, the task was created by an in-process teammate.
final
- createdAt → int
-
Epoch ms when the task was created. Anchor for missed-task detection.
final
- cron → String
-
5-field cron string (local time) -- validated on write, re-validated on
read.
final
- durable → bool?
-
Runtime-only flag. false -> session-scoped (never written to disk).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- lastFiredAt ↔ int?
-
Epoch ms of the most recent fire. Written back by the scheduler after
each recurring fire so next-fire computation survives process restarts.
getter/setter pair
- permanent → bool
-
When true, the task is exempt from recurringMaxAgeMs auto-expiry.
final
- prompt → String
-
Prompt to enqueue when the task fires.
final
- recurring → bool
-
When true, the task reschedules after firing instead of being deleted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? id, String? cron, String? prompt, int? createdAt, int? lastFiredAt, bool? recurring, bool? permanent, bool? durable, String? agentId}) → CronTask -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited