adamszustak opened a new issue, #43744:
URL: https://github.com/apache/airflow/issues/43744

   ### Apache Airflow Provider(s)
   
   google
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-apache-beam==5.6.2
   apache-airflow-providers-celery==3.6.0
   apache-airflow-providers-cncf-kubernetes==8.0.1
   apache-airflow-providers-common-sql==1.11.1
   apache-airflow-providers-dbt-cloud==3.7.0
   apache-airflow-providers-ftp==3.7.0
   apache-airflow-providers-google==10.16.0
   apache-airflow-providers-hashicorp==3.6.4
   apache-airflow-providers-http==4.10.0
   apache-airflow-providers-imap==3.5.0
   apache-airflow-providers-mysql==5.5.4
   apache-airflow-providers-postgres==5.10.2
   apache-airflow-providers-sendgrid==3.4.0
   apache-airflow-providers-sqlite==3.7.1
   apache-airflow-providers-ssh==3.10.1
   
   ### Apache Airflow version
   
   airflow 2.7.3
   
   ### Operating System
   
   composer-2.6.5-airflow-2.7.3
   
   ### Deployment
   
   Google Cloud Composer
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   When defer mode is off, the `CloudBatchSubmitJobOperator` operator always 
reports success regardless of the job's actual execution status. 
   When defer mode is on, the `CloudBatchSubmitJobOperator` operator correctly 
reports success or failure based on the job's exit code.
   
   ### What you think should happen instead
   
   The operator should always report the correct success or failure status 
based on the job's execution, regardless of whether defer mode is on or off.
   
   ### How to reproduce
   
   Create a CloudBatchSubmitJobOperator` that always fails (like exit 1) and 
run it in sync mode. 
   ```
   ([
               {
                   "taskSpec": {
                       "runnables": [
                           {
                               "script": {
                                   "text": "echo This is task 
${BATCH_TASK_INDEX}. This job has a total of ${BATCH_TASK_COUNT} tasks.; exit 1"
                               }
                           }
                       ],
                       "computeResource": {"cpuMilli": 2000, "memoryMib": 16},
                       "maxRetryCount": 2,
                       "maxRunDuration": "3600s",
                   },
                   "taskCount": 1,
                   "parallelism": 3,
               }
           ],
           deferrable=False,
   )
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to