Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,28 +140,12 @@ class BatchOperator(AwsBaseOperator[BatchClientHook]):
"retry_strategy": "json",
}

@property
def operator_extra_links(self):
op_extra_links = [BatchJobDetailsLink()]

if self.is_mapped:
wait_for_completion = self.partial_kwargs.get(
"wait_for_completion"
) or self.expand_input.value.get("wait_for_completion")
array_properties = self.partial_kwargs.get("array_properties") or self.expand_input.value.get(
"array_properties"
)
else:
wait_for_completion = self.wait_for_completion
array_properties = self.array_properties

if wait_for_completion:
op_extra_links.extend([BatchJobDefinitionLink(), BatchJobQueueLink()])
if not array_properties:
# There is no CloudWatch Link to the parent Batch Job available.
op_extra_links.append(CloudWatchEventsLink())

return tuple(op_extra_links)
operator_extra_links = (
BatchJobDetailsLink(),
BatchJobDefinitionLink(),
BatchJobQueueLink(),
CloudWatchEventsLink(),
)

def __init__(
self,
Expand Down