Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added extendLease as task_router param #213

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
26 changes: 23 additions & 3 deletions src/conductor/client/http/models/task_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class TaskResult(object):
'output_data': 'dict(str, object)',
'logs': 'list[TaskExecLog]',
'external_output_payload_storage_path': 'str',
'sub_workflow_id': 'str'
'sub_workflow_id': 'str',
'extend_lease': 'bool'
}

attribute_map = {
Expand All @@ -39,10 +40,11 @@ class TaskResult(object):
'output_data': 'outputData',
'logs': 'logs',
'external_output_payload_storage_path': 'externalOutputPayloadStoragePath',
'sub_workflow_id': 'subWorkflowId'
'sub_workflow_id': 'subWorkflowId',
'extend_lease': 'extendLease'
}

def __init__(self, workflow_instance_id=None, task_id=None, reason_for_incompletion=None, callback_after_seconds=None, worker_id=None, status=None, output_data=None, logs=None, external_output_payload_storage_path=None, sub_workflow_id=None): # noqa: E501
def __init__(self, workflow_instance_id=None, task_id=None, reason_for_incompletion=None, callback_after_seconds=None, worker_id=None, status=None, output_data=None, logs=None, external_output_payload_storage_path=None, sub_workflow_id=None, extend_lease=None): # noqa: E501
"""TaskResult - a model defined in Swagger""" # noqa: E501
self._workflow_instance_id = None
self._task_id = None
Expand All @@ -54,6 +56,7 @@ def __init__(self, workflow_instance_id=None, task_id=None, reason_for_incomplet
self._logs = None
self._external_output_payload_storage_path = None
self._sub_workflow_id = None
self._extend_lease = None
self.discriminator = None
self.workflow_instance_id = workflow_instance_id
self.task_id = task_id
Expand All @@ -73,6 +76,8 @@ def __init__(self, workflow_instance_id=None, task_id=None, reason_for_incomplet
self.external_output_payload_storage_path = external_output_payload_storage_path
if sub_workflow_id is not None:
self.sub_workflow_id = sub_workflow_id
if extend_lease is not None:
self.extend_lease = extend_lease

@property
def workflow_instance_id(self):
Expand Down Expand Up @@ -289,6 +294,21 @@ def sub_workflow_id(self, sub_workflow_id):
"""

self._sub_workflow_id = sub_workflow_id

@property
def extend_lease(self):
return self._extend_lease

@extend_lease.setter
def extend_lease(self, extend_lease):
"""Sets the extend_lease of this TaskResult.


:param extend_lease: The extend_lease of this TaskResult. # noqa: E501
:type: str
"""

self._extend_lease = extend_lease

def to_dict(self):
"""Returns the model properties as a dict"""
Expand Down
Loading