You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `commit_async()` directly when the caller must not wait or needs custom polling behavior. Its return value is the initial task status; call `get_commit_status()` to query subsequent status.
181
+
182
+
## TypeScript SDK
183
+
184
+
Use `commit()` to start the task and wait for its final status. It calls `commitAsync()` internally and polls `getCommitStatus()`. The `timeout` and `interval` arguments use seconds and default to `180` and `2`.
A timeout only stops the SDK from waiting; it does not cancel the worker task. Use `commitAsync()` when the caller needs to control polling, and call `getCommitStatus()` to query the task later.
0 commit comments