Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe
main
Commits
5d609428
Commit
5d609428
authored
Oct 24, 2016
by
Daniele Venzano
Browse files
Fix pylint errors
parent
5b995566
Changes
2
Hide whitespace changes
Inline
Side-by-side
zoe_lib/exec_logs.py
View file @
5d609428
...
...
@@ -27,7 +27,7 @@ log = logging.getLogger(__name__)
def
_path_from_execution
(
execution
:
Execution
):
return
os
.
path
.
join
(
get_conf
().
service_log_path
,
get_conf
().
deployment_name
,
str
(
execution
.
id
))
return
os
.
path
.
join
(
get_conf
().
service_log_path
,
get_conf
().
deployment_name
,
str
(
execution
.
id
))
def
_init
(
execution
:
Execution
):
...
...
@@ -62,9 +62,9 @@ def save(execution: Execution):
if
log_gen
is
None
:
_shutdown
()
return
with
open
(
fpath
,
'wb'
)
as
fp
:
with
open
(
fpath
,
'wb'
)
as
out_
fp
:
for
line
in
log_gen
:
fp
.
write
(
line
)
out_
fp
.
write
(
line
)
_shutdown
()
...
...
zoe_master/execution_manager.py
View file @
5d609428
...
...
@@ -19,7 +19,6 @@ import logging
from
zoe_lib.sql_manager
import
Execution
,
SQLManager
from
zoe_lib
import
exec_logs
from
zoe_lib.config
import
get_conf
from
zoe_master.scheduler
import
ZoeScheduler
...
...
Write
Preview
Markdown
is supported
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