Prerequisites
- Specific task: Add a time limit to a snapshot run so it doesn’t wait indefinitely.
- Related setting:
deadline(query parameter)
Set the deadline query parameter
Add deadline to your trigger request query string:
- If you want to wait up to a fixed duration, set a duration like 3m, 15min, 2h.
- If you want the request to wait until a specific moment, set an ISO timestamp like
2022-01-12T18:58:43.149Z.
Example: &deadline=3m
Expected result: the trigger request will wait up to the specified limit. If the run is not ready by then, it returns an error/timeout response instead of waiting longer.Send a trigger request with a deadline
Use the same trigger call you normally use and append deadline.
deadline must be:- ISO format (
2022-01-12T18:58:43.149Z) - Duration format (
1s,15min,2h,3d).
- If the run completes within 3m, you’ll receive results (or your webhook receives the output payload).
- If the run does not complete within 3m, the trigger call times out/returns an error response.