Skip to main content

GmFunctionTimer

A declarative one-shot timer the function arms transactionally with its mutations: invoke another function after a delay. Fires exactly once, survives replica restarts, and is bounded by the app's automation guardrails.

type GmFunctionTimer {
functionName: String!
target: String!
delayMsExpression: String!
dedupeKeyExpression: String
params: [GmTimerParam!]!
}

Fields

GmFunctionTimer.functionName ● String! non-null scalar

The function invoked when the timer fires.

GmFunctionTimer.target ● String! non-null scalar

Container reference (source) the delayed invocation runs against, e.g. "self".

GmFunctionTimer.delayMsExpression ● String! non-null scalar

The expression (source) resolving the delay in milliseconds.

GmFunctionTimer.dedupeKeyExpression ● String scalar

Optional expression (source) resolving the app-scoped dedupe key; re-arming the same key replaces the pending timer.

GmFunctionTimer.params ● [GmTimerParam!]! non-null object

Parameters bound into the delayed invocation.

Member Of

GmFunction object