temporal
Temporal
Overview
Operate workflows with explicit namespace, address, and task queue. Use repo scripts for starting workflows, then use the CLI to inspect and control them.
Connection
export TEMPORAL_ADDRESS=temporal-grpc.ide-newton.ts.net:7233
export TEMPORAL_NAMESPACE=default
export TEMPORAL_TASK_QUEUE=bumba
Validate connectivity:
temporal --namespace "$TEMPORAL_NAMESPACE" workflow list --limit 5
From UI URL to CLI args
Example UI URL:
http://temporal/namespaces/default/workflows/bumba-repo-0e6476cd-6df7-4ee3-8184-95029cd50c88/019b7788-e535-752c-8a4a-2ee44de7065e/history
Derive:
export WORKFLOW_ID=bumba-repo-0e6476cd-6df7-4ee3-8184-95029cd50c88
export RUN_ID=019b7788-e535-752c-8a4a-2ee44de7065e
Inspect workflows
Describe:
temporal --namespace "$TEMPORAL_NAMESPACE" workflow describe --workflow-id "$WORKFLOW_ID" --run-id "$RUN_ID"
History (JSON):
temporal --namespace "$TEMPORAL_NAMESPACE" workflow show --workflow-id "$WORKFLOW_ID" --run-id "$RUN_ID" --output json > /tmp/workflow-history.json
Trace:
temporal --namespace "$TEMPORAL_NAMESPACE" workflow trace --workflow-id "$WORKFLOW_ID" --run-id "$RUN_ID"
List and filter
temporal --namespace "$TEMPORAL_NAMESPACE" workflow list --limit 20
temporal --namespace "$TEMPORAL_NAMESPACE" workflow list --query 'WorkflowType="enrichFile" and ExecutionStatus="Running"'
temporal --namespace "$TEMPORAL_NAMESPACE" workflow list --query 'WorkflowType="enrichRepository" and ExecutionStatus="Failed"'
Start workflows (repo scripts)
enrichRepository:
bun run packages/scripts/src/bumba/enrich-repository.ts --path-prefix services/bumba --max-files 50 --wait
enrichFile:
bun run packages/scripts/src/bumba/enrich-file.ts --file services/bumba/src/worker.ts --wait
Reset nondeterminism
- Use
workflow showto locate the last good event ID. - Reset to
FirstWorkflowTaskor the safe event. - Confirm the new run replays deterministically.
temporal --namespace "$TEMPORAL_NAMESPACE" workflow reset --workflow-id "$WORKFLOW_ID" --run-id "$RUN_ID" --reason "reset to known-good event" --event-id 31 --reset-type FirstWorkflowTask
Cancel / terminate
temporal --namespace "$TEMPORAL_NAMESPACE" workflow cancel --workflow-id "$WORKFLOW_ID"
temporal --namespace "$TEMPORAL_NAMESPACE" workflow terminate --workflow-id "$WORKFLOW_ID" --reason "manual cleanup"
Task queues / workers
temporal --namespace "$TEMPORAL_NAMESPACE" task-queue describe --task-queue "$TEMPORAL_TASK_QUEUE"
Worker logs
kubectl logs -n jangar deploy/bumba --tail=200
Resources
- Reference:
references/temporal-cli.md - Runner:
scripts/temporal-run.sh - Triage template:
assets/temporal-triage.md - Nondeterminism failure mode:
docs/temporal-nondeterminism.md
More from proompteng/lab
repo-map
Navigate this repo quickly to find the correct app, package, or service, and identify the right files for changes.
79memories
Save and retrieve memories or embeddings via the repo helpers or API. Use when working with embedding config or memory storage.
78github-issue
Create GitHub issues in this repo using the Codex issue template and the gh CLI. Use when the user asks to file/open/create a GitHub issue, track work, or request a Codex implementation run via .github/ISSUE_TEMPLATE/codex-task.md.
76quality-checks
Run formatting, lint, typecheck, and tests for this repo; use when validating changes or investigating CI failures.
74gitops
GitOps workflows for this repo: edit Argo CD/Kubernetes/infra manifests in version control, validate changes, and rely on Argo CD to sync. Use when tasks touch argocd/, kubernetes/, tofu/, ansible/, or deployment/runbook changes, or when asked to roll out services via GitOps.
72kubernetes
Use for kubectl, CNPG, and kustomize/helm operations in this repo, including rollouts and cluster debugging.
72