get_task_history
Retrieve historical run records for SAP Datasphere task chains to analyze execution patterns, identify failures, and audit runs.
Instructions
Get the execution history for a specific task chain or object in SAP Datasphere.
Use this tool when:
Viewing all previous runs of a task chain
Analyzing task execution patterns
Finding failed runs to investigate
Checking historical performance
Auditing task chain executions
Understanding run frequency and duration
What you'll get:
Array of all historical task runs for the specified object
Each entry includes: logId, status, startTime, endTime, runTime
Sorted by most recent first
Shows RUNNING, COMPLETED, FAILED, CANCELLED runs
Required parameters:
space_id: The space containing the task chain
object_id: The task chain name to get history for
Response includes for each run:
logId: Unique identifier for this execution
status: RUNNING, COMPLETED, FAILED, or CANCELLED
startTime: When the task started (ISO format)
endTime: When the task finished (if completed)
runTime: Duration in milliseconds
objectId: The task chain name
applicationId: Always 'TASK_CHAINS' for task chains
activity: The activity type (e.g., 'RUN_CHAIN')
user: Who initiated the run
Example queries:
"Show me the run history for Daily_ETL_Pipeline in SALES_SPACE"
"List all executions of Customer_Sync in FINANCE"
"Get historical runs for Nested_Chain_1 in DWH_SPACE"
"How many times has Data_Refresh run this week?"
Use cases:
Identify recurring failures
Analyze execution duration trends
Find specific failed runs to debug
Audit who ran tasks and when
Plan maintenance windows
Monitor SLA compliance
Workflow example:
Get history: get_task_history(space_id='SALES', object_id='Daily_ETL')
Find failed run: Look for status='FAILED', note logId
Get details: get_task_log(space_id='SALES', log_id=<failed_logId>, detail_level='detailed')
View error messages in the response
Note: Uses API: GET /api/v1/datasphere/tasks/logs/{space_id}/objects/{object_id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | The space ID containing the task chain (e.g., 'SALES_SPACE', 'FINANCE'). Must be uppercase. | |
| object_id | Yes | The task chain name/identifier to get history for (e.g., 'Daily_ETL_Pipeline', 'Customer_Sync'). |