sleep is a durable timer, and signals, queries and updates read as messages the workflow receives. On the client side it says whether starting a workflow waits for the result.
library: { name: "@temporalio/workflow", versions: ">=1 <2" }. It narrates files that import from any @temporalio/* package (workflow, activity, worker or client) or belong to a package that depends on one (see Dependency detection). Other libraries’ sleep, condition and signal functions are left alone.
Examples
A workflow with activities, a signal and a timer
English
A worker
English
Starting and signalling a workflow
English
What it covers
- Workflows:
proxyActivitiesandproxyLocalActivitieswith timeouts and retry policies, activity calls,sleep,conditionwith a timeout,continueAsNew,patched, cancellation scopes andApplicationFailure. - Messages:
defineSignal,defineQueryanddefineUpdate, andsetHandlerfor each. - Child workflows:
executeChildandstartChildwith their options. - Activities:
heartbeat,sleepand the activity context. - Workers:
NativeConnection,Worker.createwith its task queue, workflows and activities, andworker.run. - The client:
client.workflow.start,execute,signal,query,result,getHandle,terminateandcancel, cron workflows andclient.schedule.
Translating
The English phrasebook is exported asen and typed as TemporalPhrases. Its time section has the same shape as the other job plugins’ (TimePhrases).