get_task_instance_try_details API returns TaskInstanceHistory schema#43830
get_task_instance_try_details API returns TaskInstanceHistory schema#43830ephraimbuddy merged 12 commits intoapache:mainfrom
Conversation
these - get_task_instance_try_details - get_mapped_task_instance_try_details - get_task_instance_tries - get_mapped_task_instance_tries are actually returning TaskInstanceHistory
pierrejeambrun
left a comment
There was a problem hiding this comment.
Beside the small comment, looking good.
Maybe @ephraimbuddy can double check ?
|
There's no difference between TI and TI History except for loading related objects. It makes me wonder if we need this PR |
In that case exposing a TaskInstance might be sufficient and less confusing for users of the API. Otherwise they might be intrigued by Also there is the deprecated |
Additionally, I noticed that the following columns are missing in
|
the logical_date/execution_date is a proxy in TaskInstance so we couldn't have it in TI history. |
Those are the differences. We can't be able to have those in TI history. |
As there are some differences I think we need to actually fix the spec with the actual response returned. Otherwise client might expect one of those fields |
pierrejeambrun
left a comment
There was a problem hiding this comment.
I recommend to wait for @ephraimbuddy second opinion before merging that. But looks good to me.
…pache#43830) * Update v1.yaml these - get_task_instance_try_details - get_mapped_task_instance_try_details - get_task_instance_tries - get_mapped_task_instance_tries are actually returning TaskInstanceHistory * Update v1.yaml * dummy change * revert "dummy change" * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * changes to v1.yaml * Update api-generated.ts * removing execution_date --------- Co-authored-by: kandharvishnuu <[email protected]> (cherry picked from commit 6f02fdb)
…43830) (#44133) * Update v1.yaml these - get_task_instance_try_details - get_mapped_task_instance_try_details - get_task_instance_tries - get_mapped_task_instance_tries are actually returning TaskInstanceHistory * Update v1.yaml * dummy change * revert "dummy change" * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * changes to v1.yaml * Update api-generated.ts * removing execution_date --------- Co-authored-by: kandharvishnuu <[email protected]> (cherry picked from commit 6f02fdb) Co-authored-by: kandharvishnu <[email protected]>
…pache#43830) * Update v1.yaml these - get_task_instance_try_details - get_mapped_task_instance_try_details - get_task_instance_tries - get_mapped_task_instance_tries are actually returning TaskInstanceHistory * Update v1.yaml * dummy change * revert "dummy change" * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * changes to v1.yaml * Update api-generated.ts * removing execution_date --------- Co-authored-by: kandharvishnuu <[email protected]>
…pache#43830) * Update v1.yaml these - get_task_instance_try_details - get_mapped_task_instance_try_details - get_task_instance_tries - get_mapped_task_instance_tries are actually returning TaskInstanceHistory * Update v1.yaml * dummy change * revert "dummy change" * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * changes to v1.yaml * Update api-generated.ts * removing execution_date --------- Co-authored-by: kandharvishnuu <[email protected]>
…43830) (#44133) * Update v1.yaml these - get_task_instance_try_details - get_mapped_task_instance_try_details - get_task_instance_tries - get_mapped_task_instance_tries are actually returning TaskInstanceHistory * Update v1.yaml * dummy change * revert "dummy change" * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * changes to v1.yaml * Update api-generated.ts * removing execution_date --------- Co-authored-by: kandharvishnuu <[email protected]> (cherry picked from commit 6f02fdb) Co-authored-by: kandharvishnu <[email protected]>
…43830) (#44133) * Update v1.yaml these - get_task_instance_try_details - get_mapped_task_instance_try_details - get_task_instance_tries - get_mapped_task_instance_tries are actually returning TaskInstanceHistory * Update v1.yaml * dummy change * revert "dummy change" * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * Update api-generated.ts * changes to v1.yaml * Update api-generated.ts * removing execution_date --------- Co-authored-by: kandharvishnuu <[email protected]> (cherry picked from commit 6f02fdb) Co-authored-by: kandharvishnu <[email protected]>
these API requests
are actually returning TaskInstanceHistory
Airflow API Docs mentions that the get_task_instance_try_details return

task_instanceschemaBut API actually returns
TaskInstanceHistoryschemaget_task_instance_try_details method also returns the
TaskInstanceHistory