def __init__( self, job_name, job_definition, job_queue, overrides, array_properties=None, parameters=None, job_id=None, waiters=None, max_retries=None, status_retries=None, aws_conn_id=None, region_name=None, **kwargs, ): # pylint: disable=too-many-arguments BaseOperator.__init__(self, **kwargs) AwsBatchClient.__init__( self, max_retries=max_retries, status_retries=status_retries, aws_conn_id=aws_conn_id, region_name=region_name, ) self.job_id = job_id self.job_name = job_name self.job_definition = job_definition self.job_queue = job_queue self.overrides = overrides self.array_properties = array_properties or {} self.parameters = parameters self.waiters = waiters
def __init__( self, waiter_config: Optional[Dict] = None, aws_conn_id: Optional[str] = None, region_name: Optional[str] = None, ): AwsBatchClient.__init__(self, aws_conn_id=aws_conn_id, region_name=region_name) self._default_config = None # type: Optional[Dict] self._waiter_config = waiter_config or self.default_config self._waiter_model = botocore.waiter.WaiterModel(self._waiter_config)