phanikumv commented on issue #31322:
URL: https://github.com/apache/airflow/issues/31322#issuecomment-1551025531

   https://github.com/apache/airflow/pull/30829: works good. Tested it by 
passing a shareIdentifier while submitting the Batch job
   
   ```
   [2023-05-17, 08:57:54 UTC] {batch_client.py:328} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) check status (RUNNABLE) in ['RUNNING', 
'SUCCEEDED', 'FAILED']
   [2023-05-17, 08:57:54 UTC] {batch_client.py:343} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) status check (7 of 4200) in the next 
7.67 seconds
   [2023-05-17, 08:58:03 UTC] {batch_client.py:328} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) check status (STARTING) in ['RUNNING', 
'SUCCEEDED', 'FAILED']
   [2023-05-17, 08:58:03 UTC] {batch_client.py:343} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) status check (8 of 4200) in the next 
8.68 seconds
   [2023-05-17, 08:58:12 UTC] {batch_client.py:328} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) check status (SUCCEEDED) in ['RUNNING', 
'SUCCEEDED', 'FAILED']
   [2023-05-17, 08:58:21 UTC] {batch_client.py:328} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) check status (SUCCEEDED) in 
['SUCCEEDED', 'FAILED']
   [2023-05-17, 08:58:21 UTC] {batch_client.py:269} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) has completed
   [2023-05-17, 08:58:21 UTC] {batch.py:310} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) CloudWatch Events details found. Links 
to logs:
   [2023-05-17, 08:58:21 UTC] {batch.py:313} INFO - 
   [2023-05-17, 08:58:21 UTC] {batch_client.py:245} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) succeeded: {'jobArn': 
'arn:aws:batch:us-east-2:396807896376:job/733b153e-fda5-4f3c-a29b-95eb8c22a6d4',
 'jobName': 'test_***_job', 'jobId': '733b153e-fda5-4f3c-a29b-95eb8c22a6d4', 
'jobQueue': 
'arn:aws:batch:us-east-2:396807896376:job-queue/providers_team_job_queue', 
'status': 'SUCCEEDED', 'shareIdentifier': 'providers', 'schedulingPriority': 1, 
'attempts': [{'container': {'containerInstanceArn': 
'arn:aws:ecs:us-east-2:396807896376:container-instance/AWSBatch-providers_team_compute_env-0f056134-f57a-3a1f-9cbb-8d84bdd0f935/bcefcb90921e460085877d330bc5f495',
 'taskArn': 
'arn:aws:ecs:us-east-2:396807896376:task/AWSBatch-providers_team_compute_env-0f056134-f57a-3a1f-9cbb-8d84bdd0f935/0c4cdbb8cbfa4605aa1ad82e28384f87',
 'exitCode': 0, 'logStreamName': 
'providers_team_job_defn/default/0c4cdbb8cbfa4605aa1ad82e28384f87', 
'networkInterfaces': []}, 'startedAt': 1684313885354, 'stoppedAt'
 : 1684313885432, 'statusReason': 'Essential container in task exited'}], 
'statusReason': 'Essential container in task exited', 'createdAt': 
1684313824707, 'startedAt': 1684313885354, 'stoppedAt': 1684313885432, 
'dependsOn': [], 'jobDefinition': 
'arn:aws:batch:us-east-2:396807896376:job-definition/providers_team_job_defn:2',
 'parameters': {}, 'container': {'image': 
'public.ecr.aws/amazonlinux/amazonlinux:latest', 'command': ['echo', 'hello 
world'], 'volumes': [], 'environment': [], 'mountPoints': [], 'ulimits': [], 
'exitCode': 0, 'containerInstanceArn': 
'arn:aws:ecs:us-east-2:396807896376:container-instance/AWSBatch-providers_team_compute_env-0f056134-f57a-3a1f-9cbb-8d84bdd0f935/bcefcb90921e460085877d330bc5f495',
 'taskArn': 
'arn:aws:ecs:us-east-2:396807896376:task/AWSBatch-providers_team_compute_env-0f056134-f57a-3a1f-9cbb-8d84bdd0f935/0c4cdbb8cbfa4605aa1ad82e28384f87',
 'logStreamName': 
'providers_team_job_defn/default/0c4cdbb8cbfa4605aa1ad82e28384f87', 
'networkInterfaces': [], 'reso
 urceRequirements': [{'value': '1', 'type': 'VCPU'}, {'value': '2048', 'type': 
'MEMORY'}], 'secrets': []}, 'tags': {}, 'propagateTags': False, 
'platformCapabilities': ['EC2'], 'eksAttempts': []}
   [2023-05-17, 08:58:21 UTC] {batch.py:329} INFO - AWS Batch job 
(733b153e-fda5-4f3c-a29b-95eb8c22a6d4) succeeded
   ```


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