[ 
https://issues.apache.org/jira/browse/AIRFLOW-4991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888226#comment-16888226
 ] 

Greg Ferrar edited comment on AIRFLOW-4991 at 7/18/19 6:22 PM:
---------------------------------------------------------------

I am willing to fix this myself; and my experience with contributing to this or 
any other open source project is nil. So if someone else wants to jump on it 
and do it right the first time, that would be great; otherwise I'll be back to 
take the long road to getting this implemented and approved myself.


was (Author: greg-ferrar):
I am willing to fix this myself; and my experience with contributing to this or 
any other github project it nil. So if someone else wants to jump on it and do 
it right the first time, that would be great; otherwise I'll be back to take 
the long road to getting this implemented and approved myself.

> 401 Unauthorized in read_pod() when EKS Kubernetes TaskInstance runs longer 
> than 15 minutes
> -------------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-4991
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4991
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: authentication
>    Affects Versions: 1.10.3
>            Reporter: Greg Ferrar
>            Priority: Minor
>
> Using KubernetesOperator with EKS, tasks that run more than 15 minutes result 
> in a `401 Unauthenticated` error after the worker script successfully 
> completes.
> {code:java}
> [2019-07-10 20:46:32,509] {__init__.py:1580} ERROR - (401)
> Reason: Unauthorized
> HTTP response headers: HTTPHeaderDict({'Audit-Id': 
> '0587c262-eec3-4d20-a2ce-925e1bdd51eb', 'Content-Type': 'application/json', 
> 'Date': 'Wed, 10 Jul 2019 20:46:32 GMT', 'Content-Length': '129'})
> {code}
> This is due to EKS having a 15-minute timeout on its authentication token.
> Solution is to re-authenticate with EKS at least every fifteen minutes, or 
> maybe just at the end of the job.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to