You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/10 16:25:57 UTC

[GitHub] [airflow] bmfisher edited a comment on issue #12728: DAG execution works some times but throws Unable to parse string [failed] error at other times

bmfisher edited a comment on issue #12728:
URL: https://github.com/apache/airflow/issues/12728#issuecomment-776825605


   @dimberman @m0bi5 
   I'm seeing the same error.  I strongly suspect its due to this line https://github.com/apache/airflow/blob/master/airflow/kubernetes/pod_launcher.py#L168
   Reading the log line splits on `' '` and the timestamps in my logs as well as yours are similar to `[2020-12-01 01:42:53,699]` containing a space.  I've seen other k8s logs with the begging of the line looking like `2021-02-09T22:49:58.852Z    log`.  For now I'll be digging into k8s options looking for a way to change my timestamp format, but that could be a relatively simple PR.  I'd also be willing to help out implementing a fix.
   
   Edit: now seeing that https://github.com/apache/airflow/blob/master/airflow/kubernetes/pod_launcher.py#L132 asks to read logs with `timestamps=True` which should put the timestamps in the right format for splitting on a space.


----------------------------------------------------------------
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.

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