You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Haapalaj (via GitHub)" <gi...@apache.org> on 2025/03/28 11:51:05 UTC

[I] Add pagination to the task list [airflow]

Haapalaj opened a new issue, #48494:
URL: https://github.com/apache/airflow/issues/48494

   ### Apache Airflow version
   
   2.10.5
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   For Airflow stable API request of listing task instances:
   GET
   /api/v1/dags/~/dagRuns/~/taskInstances?limit=3&offset=1&order_by=start_date
   
   {
     "detail": "Extra query parameter(s) order_by not in spec",
     "status": 400,
     "title": null,
     "type": "https://airflow.apache.org/docs/apache-airflow/2.10.5/stable-rest-api-ref.html#section/Errors/BadRequest"
   }
   
   The list is returned in random order.
   
   
   
   ### What you think should happen instead?
   
   In the Airflow stable API, the task listing API's should support pagination.
   They do support "offset" and "limit" but not the "order_by", which is needed for pagination.
   The list is returned in random order.
   
   Happen s with:
   GET
   https://airflow.apache.org/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances
   https://airflow.apache.org/api/v1/dags/~/dagRuns/~/taskInstances/list
   
   and
   
   POST
   https://airflow.apache.org/api/v1/dags/~/dagRuns/~/taskInstances/list
   
   ### How to reproduce
   
   GET
   /api/v1/dags/~/dagRuns/~/taskInstances?limit=3&offset=1&order_by=start_date
   
   
   ### Operating System
   
   linux
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-snowflake==6.1.1
   apache-airflow-providers-amazon==9.4.0
   apache-airflow-providers-google==14.0.0
   apache-airflow-providers-microsoft-azure==12.2.0
   apache-airflow-providers-odbc==4.9.0
   apache-airflow-providers-postgres==6.1.0
   apache-airflow-providers-databricks==7.2.0
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add pagination to the task list [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun closed issue #48494: Add pagination to the task list
URL: https://github.com/apache/airflow/issues/48494


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add pagination to the task list [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #48494:
URL: https://github.com/apache/airflow/issues/48494#issuecomment-2794607458

   `order_by` seems to be supported in list task instances endpoints in Airflow 3. Since this is a Airflow 2 request I guess this can be closed.
   
   cc: @pierrejeambrun 
   
   https://github.com/apache/airflow/blob/891c53fd3bcc1a0473744879f3bd76f0551a9e7c/airflow-core/src/airflow/api_fastapi/core_api/routes/public/task_instances.py#L371-L395
   
   https://github.com/apache/airflow/blob/891c53fd3bcc1a0473744879f3bd76f0551a9e7c/airflow-core/src/airflow/api_fastapi/core_api/datamodels/task_instances.py#L123


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add pagination to the task list [airflow]

Posted by "giannistbs (via GitHub)" <gi...@apache.org>.
giannistbs commented on issue #48494:
URL: https://github.com/apache/airflow/issues/48494#issuecomment-2765789405

   Hey I'm so sorry. I accidentally commented from my work account (@netcompany mail, @giannistbsnet ) and I have been assigned to that issue on that account. I would like to work on the issue from my personal account tho which is this one I'm commenting on right now (@giannistbs). If it's not a hassle I would like have the assignment on this account :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add pagination to the task list [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #48494:
URL: https://github.com/apache/airflow/issues/48494#issuecomment-2796366580

   I don't understand why we are considering `order_by` when mentioning `pagination` but both are supported in airflow 3.x and this feature will not be developed for airflow 2.x.
   
   Closing, feel free to re-open if needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add pagination to the task list [airflow]

Posted by "giannistbsnet (via GitHub)" <gi...@apache.org>.
giannistbsnet commented on issue #48494:
URL: https://github.com/apache/airflow/issues/48494#issuecomment-2761484483

   I would like to work on this issue too


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add pagination to the task list [airflow]

Posted by "amolsr (via GitHub)" <gi...@apache.org>.
amolsr commented on issue #48494:
URL: https://github.com/apache/airflow/issues/48494#issuecomment-2761387751

   I would like to work on this one


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add pagination to the task list [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #48494:
URL: https://github.com/apache/airflow/issues/48494#issuecomment-2764968446

   Agree between yourself and maybe review each other job.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org