We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.3.0b1 (pre-release)
The rest API endpoint for get /dags/{dag_id}/tasks does not include is_mapped.
is_mapped
Example: consumer is mapped but I have no way to tell that from the API response:
consumer
Someone should be able to know if a task from get /tasks is mapped or not.
call get /tasks on a dag with mapped tasks. see there is no way to determine if it is mapped from the response body.
Mac OSX
No response
Docker-Compose
The text was updated successfully, but these errors were encountered:
is_mapped field can be added to the TaskSchema that can return it in response. I can work on a PR if the issue is accepted.
TaskSchema
diff --git a/airflow/api_connexion/schemas/task_schema.py b/airflow/api_connexion/schemas/task_schema.py index 600d28ac0..aa9a47030 100644 --- a/airflow/api_connexion/schemas/task_schema.py +++ b/airflow/api_connexion/schemas/task_schema.py @@ -58,6 +58,7 @@ class TaskSchema(Schema): sub_dag = fields.Nested(DAGSchema, dump_only=True) downstream_task_ids = fields.List(fields.String(), dump_only=True) params = fields.Method('get_params', dump_only=True) + is_mapped = fields.Boolean(dump_only=True) def _get_class_reference(self, obj): result = ClassReferenceSchema().dump(obj)
Sorry, something went wrong.
@tirkarthi I say go for it!
Thanks @bbovenzi , created #23319
tirkarthi
Successfully merging a pull request may close this issue.
Apache Airflow version
2.3.0b1 (pre-release)
What happened
The rest API endpoint for get /dags/{dag_id}/tasks does not include
is_mapped
.Example:
consumer
is mapped but I have no way to tell that from the API response:What you think should happen instead
Someone should be able to know if a task from get /tasks is mapped or not.
How to reproduce
call get /tasks on a dag with mapped tasks. see there is no way to determine if it is mapped from the response body.
Operating System
Mac OSX
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: