type

TaskEnqueueOptions

Admission and scheduling controls for one durable task.

Properties

PropertyTypeDescription
RunAttime.TimeSchedules future execution; the zero time makes the task immediately eligible.
QueuestringOverrides the definition’s default worker queue.
ConcurrencyKeystringSerializes active leases sharing this key within the queue.
Target*store.DocumentReferenceOptional lifecycle-safe document target.
RequestedBy*store.DocumentReferenceOptional lifecycle-safe requesting identity.

Full signature

type TaskEnqueueOptions struct { RunAt time.Time Queue string ConcurrencyKey string Target *store.DocumentReference RequestedBy *store.DocumentReference }

Source core/task.go:218