You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "apilaskowski (via GitHub)" <gi...@apache.org> on 2023/03/01 15:16:19 UTC

[GitHub] [airflow] apilaskowski commented on pull request #29815: Making AF more resistant to DB hiccups

apilaskowski commented on PR #29815:
URL: https://github.com/apache/airflow/pull/29815#issuecomment-1450320902

   > Small thing, and I'm not sure if Airflow devs already have a policy about this but time.time() is not guaranteed to be monotonic so you could report a negative value when you do time.time() - start_time.
   > 
   > You can use time.monotonic() or time.perf_counter() to get monotonic time.
   
    I made a change as @notatallshaw suggested.


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