anishgirianish commented on code in PR #60108:
URL: https://github.com/apache/airflow/pull/60108#discussion_r3003905420
##########
task-sdk/src/airflow/sdk/api/client.py:
##########
@@ -952,7 +952,10 @@ def __init__(self, *, base_url: str | None, dry_run: bool
= False, token: str, *
)
def _update_auth(self, response: httpx.Response):
- if new_token := response.headers.get("Refreshed-API-Token"):
+ if new_token := response.headers.get("X-Execution-Token"):
+ log.debug("Received execution token, swapping auth")
+ self.auth = BearerAuth(new_token)
+ elif new_token := response.headers.get("Refreshed-API-Token"):
Review Comment:
Yep, I agree as well, removed and now it only uses `Refreshed-API-Token`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]