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 2020/07/30 11:53:15 UTC

[GitHub] [airflow] edejong commented on pull request #9590: Improve idempotency of BigQueryInsertJobOperator

edejong commented on pull request #9590:
URL: https://github.com/apache/airflow/pull/9590#issuecomment-666319663


   The difficulty I have with "reattach when the job has not finished, otherwise start a new one" is that that's quite a bit of logic to follow, that may or may not be what people expect.
   
   I would argue it's better to just keep things as predictable as possible, which means that by default it's probably best to just launch a new job. This will work fine and predictably for most use cases, and doesn't always lead to extra costs as the BigQuery cache might sometimes be used. In other words add the try number to the job id.
   
   Then for the exceptions we can think about adding an option to the Operator to either reattach to the previous job, or cancel it. This is up to the user's specific use case scenario. So here don't use try number in the job id, then if a new job is needed make some small modification to the previous one.
   
   That way we can start out in a predictable, simple way and more complicated use case scenarios can be added iteratively in future versions as needed. Also, because whatever happens to a previous job is explicitly set by the user it won't lead to many support questions which is what I fear otherwise. Use case scenarios vary a lot and there's really no one size fits all.


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