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/08/08 12:35:09 UTC

[GitHub] [airflow] hsej opened a new issue #17493: BigQueryInsertJobOperator may start the same job twice

hsej opened a new issue #17493:
URL: https://github.com/apache/airflow/issues/17493


   **Apache Airflow version**: 1.10.15
   
   **Apache Airflow Provider versions** (please include all providers that are relevant to your bug):
   apache-airflow-backport-providers-google==2021.3.3
   
   **What happened**:
   Looking at the _submit_job method the job is started by using job.result() - in bold below. However, the job IS already started by just callnig the hook.insert_job() method. Thus I suggest removing the extra job.result() call in the _submit_job() method below.
   ```
       def _submit_job(
           self,
           hook: BigQueryHook,
           job_id: str,
       ) -> BigQueryJob:
           # Submit a new job
           job = hook.insert_job(
               configuration=self.configuration,
               project_id=self.project_id,
               location=self.location,
               job_id=job_id,
           )
           # Start the job and wait for it to complete and get the result.
           **job.result()**
           return job
   ```
   


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



[GitHub] [airflow] uranusjr closed issue #17493: BigQueryInsertJobOperator may start the same job twice

Posted by GitBox <gi...@apache.org>.
uranusjr closed issue #17493:
URL: https://github.com/apache/airflow/issues/17493


   


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



[GitHub] [airflow] hsej commented on issue #17493: BigQueryInsertJobOperator may start the same job twice

Posted by GitBox <gi...@apache.org>.
hsej commented on issue #17493:
URL: https://github.com/apache/airflow/issues/17493#issuecomment-894863507


   Sorry!
   
   Thank you very much for that.


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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #17493: BigQueryInsertJobOperator may start the same job twice

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #17493:
URL: https://github.com/apache/airflow/issues/17493#issuecomment-894791188


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


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



[GitHub] [airflow] uranusjr commented on issue #17493: BigQueryInsertJobOperator may start the same job twice

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #17493:
URL: https://github.com/apache/airflow/issues/17493#issuecomment-894970193


   We have ceased maintenance of Airflow 1.10. Please consider upgrading to Airflow 2.


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