[ 
https://issues.apache.org/jira/browse/AIRFLOW-5178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044167#comment-17044167
 ] 

Saurabh Dhupar commented on AIRFLOW-5178:
-----------------------------------------

Looks like someone already worked on it - 

[https://github.com/apache/airflow/commit/01a15b82bdc2ec6782c2fc42036f730a4734662d#diff-2cb1716239195f758e708664881a59cf]

Ticket can be closed .

> AWS Batch Operator improvement to support batch job parameters
> --------------------------------------------------------------
>
>                 Key: AIRFLOW-5178
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5178
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: aws, operators
>    Affects Versions: 1.10.4
>            Reporter: Tim Mottershead
>            Assignee: Saurabh Dhupar
>            Priority: Major
>              Labels: gsoc, gsoc2020, mentor, newbie
>
> AWSBatchOperator does not currently support AWS Batch Job parameters.
> When creating an AWS Batch Job Definition and when submitting a job to AWS 
> Batch, it's possible to define and supply job parameters. Most of our AWS 
> Batch jobs take parameters but we are not able to pass them using the 
> AWSBatchOperator.
> In order to support batch job parameters, a new argument to __init__(self) 
> could be added called *job_parameters*, saved to an instance variable and 
> supplied to self.client.submit_job() in the execute() method:
> {code}
> self.client.submit_job(
> jobName=self.job_name,
> jobQueue=self.job_queue,
> jobDefinition=self.job_definition,
> containerOverrides=self.overrides,
> parameters=self.job_parameters)
> {code}
> See 
> https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html#Batch.Client.submit_job



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to