Skip to content
Merged
Show file tree
Hide file tree
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 @@ -265,7 +265,16 @@ class CloudRunExecuteJobOperator(GoogleCloudBaseOperator):
:param deferrable: Run the operator in deferrable mode.
"""

template_fields = ("project_id", "region", "gcp_conn_id", "impersonation_chain", "job_name", "overrides")
template_fields = (
"project_id",
"region",
"gcp_conn_id",
"impersonation_chain",
"job_name",
"overrides",
"polling_period_seconds",
"timeout_seconds",
)

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def test_template_fields(self):
_assert_common_template_fields(operator.template_fields)
assert "job_name" in operator.template_fields
assert "overrides" in operator.template_fields
assert "polling_period_seconds" in operator.template_fields
assert "timeout_seconds" in operator.template_fields

@mock.patch(CLOUD_RUN_HOOK_PATH)
def test_execute_success(self, hook_mock):
Expand Down