Retrieves a run result by run_id, blocking until the run is completed.
Python
from parallel import Parallel client = Parallel( api_key="My API Key", ) task_run_result = client.task_run.result( run_id="run_id", ) print(task_run_result.output)
{ "run": { "run_id": "trun_9907962f83aa4d9d98fd7f4bf745d654", "status": "completed", "is_active": false, "processor": "core", "metadata": { "my_key": "my_value" }, "created_at": "2025-04-23T20:21:48.037943Z", "modified_at": "2025-04-23T20:21:48.037943Z" }, "output": { "basis": [], "type": "json", "content": { "gdp": "$3.1 trillion (2023)" } } }
Successful Response
Result of a task run.