Skip to content

Schedules ​

Trigger an owned workflow at a declared time, interval or event. Scheduling determines when work is requested; the workflow still performs normal authority checks.

Contract: nexa.schedules/100. API index.

Typical sequence ​

Register the schedule with a valid timezone and trigger definition. Enable or disable it explicitly, inspect ReadNextRun, and use TriggerNow for an intentional manual run.

Behavior and limits ​

Missed-trigger policies govern backlog, not exactly-once effects. Disabling or stopping fences future dispatch; it does not undo effects already completed by a run.

The recorded Host maps 6 of 6 operations in this group. A mapping is subject to permission, phase, scope, platform and business preconditions. Host snapshot identifies the source revision; negotiate against the actual installed Host.

Operations ​

Register · List · Enable · Disable · TriggerNow · ReadNextRun

Register ​

ScheduleDefinition → RegistrationRef

PropertyContract
Local SDK method ID1
KindRegistration
Permissionnexa.schedules.write
Legal phasesInitialize
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.
WorkflowQualifiedIdIdentity or revision in this model’s domain; preserve ownership and exact spelling.
TriggerScheduleTriggerUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
TimeZonestringDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
AtDateTimeOffset?Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.
IntervalMillisecondslong?Domain value named by this field; additional accepted values and bounds are determined by the operation and Host policy. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.
EventQualifiedId?Identity or revision in this model’s domain; preserve ownership and exact spelling. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.
MissedMissedSchedulePolicyUse an exact enum member listed in the reference. The Host can support a subset for a particular operation.
ReplayLimitlongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.
DebounceMillisecondslongDomain value named by this field; additional accepted values and bounds are determined by the operation and Host policy.

Successful result

Retain the registration identity for the permitted update/release operation. Staged registrations become visible only at group activation.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Schedules_Register(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Schedules_Register_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

List ​

PageRequest → Page<ScheduleState> (wrapper, item)

PropertyContract
Local SDK method ID2
KindQuery
Permissionnexa.schedules.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
Cursorstring?Opaque continuation or observation cursor. Reuse only in the issuing query/scope; absence and invalidity are different. Nullable; omission is distinct from an empty value. No implicit default is promised by this type.
LimitlongRequested bound on returned items. The Host may impose a smaller domain-specific limit.

Successful result

Read Items and continue with NextCursor while preserving the original query. An absent cursor ends the sequence; an invalid cursor is an error.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Schedules_List(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Schedules_List_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Enable ​

QualifiedRequest → ScheduleState

PropertyContract
Local SDK method ID3
KindMutation
Permissionnexa.schedules.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Schedules_Enable(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Schedules_Enable_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

Disable ​

QualifiedRequest → ScheduleState

PropertyContract
Local SDK method ID4
KindMutation
Permissionnexa.schedules.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Schedules_Disable(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Schedules_Disable_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

TriggerNow ​

QualifiedRequest → OperationRef

PropertyContract
Local SDK method ID5
KindOperation
Permissionnexa.schedules.write
Legal phasesActive
IdempotencyRequiredKey
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

Work has been admitted. Read or watch the owned operation through Tasks to establish its terminal result; admission is not completion.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. Supply a key for the intended effect and retain that key and inputs while resolving an uncertain reply. Do not retry with changed inputs under the same key. Re-read after revision conflicts; cancellation does not prove rollback. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Schedules_TriggerNow(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Schedules_TriggerNow_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.

ReadNextRun ​

QualifiedRequest → ScheduleState

PropertyContract
Local SDK method ID6
KindQuery
Permissionnexa.schedules.read
Legal phasesInitialize, PostInitialize, Checkup, Finalize, Active
IdempotencyReadOnly
Host statusMapped in recorded snapshot

Request fields

FieldTypeMeaning
IdQualifiedIdIdentity in this model’s domain. Use the identity issued or declared for this object, not a display name or filesystem path.

Successful result

Decode the exact output model after Success. Preserve its identities, revision and schema metadata for subsequent domain operations.

Failure and retry

Unavailable capability, denied permission, wrong phase, malformed schema or foreign ownership fails the call. A read-only classification does not bypass budgets or guarantee a failed request can be retried indefinitely. Preserve structured errors; see recovery guidance.

C binding (call fragment; the caller supplies the encoded request and buffers):

c
nx_Schedules_ReadNextRun(&reply, request, &options);

The next resume receives the reply. Check nx_reply_success before nx_Schedules_ReadNextRun_result. See the complete continuation example and Wasm ownership rules. This fragment is not a standalone guest.


Source: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.