Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osdu-ingestion-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Data Flow
Data Ingestion
osdu-ingestion-lib
Commits
6dd39511
Commit
6dd39511
authored
3 years ago
by
Siarhei Khaletski (EPAM)
Browse files
Options
Downloads
Plain Diff
Merge branch 'use_ingestion_workflow_client' into 'master'
Use ingestion_workflow_client See merge request
!8
parents
83077971
02b56829
No related branches found
No related tags found
1 merge request
!8
Use ingestion_workflow_client
Pipeline
#80072
passed
3 years ago
Stage: linters
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
osdu_ingestion/libs/update_status.py
+7
-7
7 additions, 7 deletions
osdu_ingestion/libs/update_status.py
with
7 additions
and
7 deletions
osdu_ingestion/libs/update_status.py
+
7
−
7
View file @
6dd39511
...
@@ -20,11 +20,11 @@ import logging
...
@@ -20,11 +20,11 @@ import logging
import
requests
import
requests
from
osdu_api.auth.authorization
import
TokenRefresher
,
authorize
from
osdu_api.auth.authorization
import
TokenRefresher
,
authorize
from
osdu_api.clients.
data
_workflow.
data
_workflow_client
import
\
from
osdu_api.clients.
ingestion
_workflow.
ingestion
_workflow_client
import
\
Data
WorkflowClient
Ingestion
WorkflowClient
from
osdu_api.configuration.config_manager
import
DefaultConfigManager
from
osdu_api.configuration.config_manager
import
DefaultConfigManager
from
osdu_api.model.
data
_workflow.update_
status
_request
import
\
from
osdu_api.model.
ingestion
_workflow.update_
workflow_run
_request
import
\
Update
Status
Request
Update
WorkflowRun
Request
from
osdu_ingestion.libs.context
import
Context
from
osdu_ingestion.libs.context
import
Context
from
osdu_ingestion.libs.mixins
import
HeadersMixin
from
osdu_ingestion.libs.mixins
import
HeadersMixin
...
@@ -74,7 +74,7 @@ class UpdateStatus(HeadersMixin):
...
@@ -74,7 +74,7 @@ class UpdateStatus(HeadersMixin):
self
.
status
=
status
self
.
status
=
status
self
.
token_refresher
=
token_refresher
self
.
token_refresher
=
token_refresher
config_manager
=
DefaultConfigManager
()
config_manager
=
DefaultConfigManager
()
self
.
workflow_client
=
Data
WorkflowClient
(
self
.
workflow_client
=
Ingestion
WorkflowClient
(
config_manager
=
config_manager
,
config_manager
=
config_manager
,
token_refresher
=
token_refresher
,
token_refresher
=
token_refresher
,
data_partition_id
=
context
.
data_partition_id
data_partition_id
=
context
.
data_partition_id
...
@@ -88,9 +88,9 @@ class UpdateStatus(HeadersMixin):
...
@@ -88,9 +88,9 @@ class UpdateStatus(HeadersMixin):
:return: The Workflow server response
:return: The Workflow server response
:rtype: requests.Response
:rtype: requests.Response
"""
"""
update_status_request
=
Update
Status
Request
(
self
.
status
)
update_status_request
=
Update
WorkflowRun
Request
(
self
.
status
)
logger
.
debug
(
f
"
Sending request
'
{
update_status_request
}
'"
)
logger
.
debug
(
f
"
Sending request
'
{
update_status_request
}
'"
)
response
=
self
.
workflow_client
.
update_
status
(
update_status_request
,
self
.
workflow_name
,
self
.
run_id
)
response
=
self
.
workflow_client
.
update_
workflow_run
(
update_status_request
,
self
.
workflow_name
,
self
.
run_id
)
return
response
return
response
@authorize
()
@authorize
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment