submit_and_wait_for_request
Submit a subset request and poll its status until it finishes, fails, or timeout_s elapses — instead of calling submit_subset_request and then manually looping on check_request_status. Requires GDEX_TOKEN.
GDEX's API schema doesn't document the exact status vocabulary, so
"finished" is a best-effort match on the status text (words like
"complete" vs. "error"/"fail"). If the outcome comes back "timeout", that
means the request is still pending by our reading, not that it failed —
keep polling with check_request_status(rindex), or re-run this tool with
a longer timeout_s. If it comes back "unknown", the status payload didn't
contain a field we recognize; inspect the raw "status" value yourself.
Args:
request_json: JSON string of the subsetting request body (see get_control_file_template).
poll_interval_s: Seconds between status checks (default 15, minimum 5).
timeout_s: Give up and return the last-seen status after this many seconds (default 600).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | ||
| request_json | Yes | ||
| poll_interval_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |