Before you begin
- You have already created at least one Run. See Organize streamed data into Assets and Runs.
- You have a Sift API key and base URL. See Authentication.
How Run retrieval works
When a process restarts or a new process needs to stream into an existing Run, you can look up the Run by itsclient_key or other criteria instead of storing the server-assigned run_id externally. Sift provides two retrieval methods:
RunService.GetRun: retrieves a single Run by its exactrun_id. Use this when you already have the ID.RunService.ListRuns: searches for Runs using filter criteria such asclient_keyorname. Use this when you need to find a Run without a stored ID.
Retrieve and resume a Run
Step 1: Look up a Run by client key
UseRunService.ListRuns with a filter on client_key to find a specific Run.
Step 2: Include the Run ID in subsequent ingestion requests
Once you have therun_id, include it in your IngestWithConfigDataStreamRequest to continue associating new data with that Run.
Step 3: Update a Run
To modify an existing Run (for example, to set itsstop_time), use RunService.UpdateRun. See UpdateRunRequest for the available fields.