Commit 24271157 authored by Siarhei Khaletski (EPAM)'s avatar Siarhei Khaletski (EPAM) 🚩
Browse files

Merge branch 'fix_data_workflow_client' into 'master'

revert data-workflow-client

See merge request !52
parents 58d845ac 3f58534d
Pipeline #85886 passed with stages
in 28 seconds
......@@ -30,16 +30,6 @@ class DataWorkflowClient(BaseClient):
return self.make_request(method=HttpMethod.POST, url='{}{}'.format(self.data_workflow_url, '/startWorkflow'),
data=start_workflow.to_JSON(), bearer_token=bearer_token)
def update_status(
self,
update_status_request: UpdateStatusRequest,
workflow_name: str,
run_id: str,
bearer_token=None
):
return self.make_request(
method=HttpMethod.PUT,
url=f'{workflow_name}/workflowRun/{run_id}',
data=update_status_request.to_JSON(),
bearer_token=bearer_token
)
\ No newline at end of file
def update_status(self, update_status_request: UpdateStatusRequest, bearer_token=None):
return self.make_request(method=HttpMethod.POST, url='{}{}'.format(self.data_workflow_url, '/updateStatus'),
data=update_status_request.to_JSON(), bearer_token=bearer_token)
\ No newline at end of file
......@@ -15,5 +15,6 @@ from osdu_api.model.base import Base
class UpdateStatusRequest(Base):
def __init__(self, workflow_status_type: str):
def __init__(self, workflow_id: str, workflow_status_type: str):
self.workflowId = workflow_id
self.status = workflow_status_type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment