Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
9112c185
Commit
9112c185
authored
Jun 15, 2020
by
Lionel Walter
Browse files
Use snake case in JobStart and JobStop
parent
c1c2ca61
Pipeline
#10133
passed with stages
in 55 minutes and 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
import_api_app/resources/JobStart.py
View file @
9112c185
...
@@ -20,11 +20,11 @@ class JobStart(Resource):
...
@@ -20,11 +20,11 @@ class JobStart(Resource):
job_parameters
[
'recordSetId'
]
=
record_set_id
job_parameters
[
'recordSetId'
]
=
record_set_id
job_parameters
[
'processId'
]
=
process_id
job_parameters
[
'processId'
]
=
process_id
helm
C
lient
=
helm
.
Helm
()
helm
_c
lient
=
helm
.
Helm
()
helm_name
=
generate_helm_name
(
process_id
,
job_name
)
helm_name
=
generate_helm_name
(
process_id
,
job_name
)
try
:
try
:
output
=
helm
C
lient
.
install
(
output
=
helm
_c
lient
.
install
(
chart
=
os
.
path
.
join
(
current_app
.
root_path
,
"charts"
,
job_name
),
chart
=
os
.
path
.
join
(
current_app
.
root_path
,
"charts"
,
job_name
),
name
=
helm_name
,
name
=
helm_name
,
namespace
=
current_app
.
config
[
'NAMESPACE'
],
namespace
=
current_app
.
config
[
'NAMESPACE'
],
...
...
import_api_app/resources/JobStop.py
View file @
9112c185
...
@@ -9,12 +9,12 @@ class JobStop(Resource):
...
@@ -9,12 +9,12 @@ class JobStop(Resource):
# @swag.validate('job-parameters')
# @swag.validate('job-parameters')
@
swag_from
(
'JobStop.yml'
)
@
swag_from
(
'JobStop.yml'
)
def
delete
(
self
,
process_id
,
job_name
):
def
delete
(
self
,
process_id
,
job_name
):
helm
C
lient
=
helm
.
Helm
()
helm
_c
lient
=
helm
.
Helm
()
helm_name
=
generate_helm_name
(
process_id
,
job_name
)
helm_name
=
generate_helm_name
(
process_id
,
job_name
)
try
:
try
:
output
=
helm
C
lient
.
uninstall
(
output
=
helm
_c
lient
.
uninstall
(
name
=
helm_name
,
name
=
helm_name
,
namespace
=
current_app
.
config
[
'NAMESPACE'
],
namespace
=
current_app
.
config
[
'NAMESPACE'
],
fail_on_err
=
False
fail_on_err
=
False
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment