Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
public
satella
Commits
a3fc1996
Commit
a3fc1996
authored
5 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
2.7.16
parent
64200659
No related branches found
Branches containing commit
Tags
v2.7.16
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
satella/__init__.py
+1
-1
1 addition, 1 deletion
satella/__init__.py
satella/processes.py
+1
-6
1 addition, 6 deletions
satella/processes.py
with
2 additions
and
7 deletions
satella/__init__.py
+
1
−
1
View file @
a3fc1996
__version__
=
'
2.7.16
_a4
'
__version__
=
'
2.7.16
'
This diff is collapsed.
Click to expand it.
satella/processes.py
+
1
−
6
View file @
a3fc1996
...
@@ -30,28 +30,23 @@ def call_and_return_stdout(args: tp.Union[str, tp.List[str]],
...
@@ -30,28 +30,23 @@ def call_and_return_stdout(args: tp.Union[str, tp.List[str]],
within this time, it will be sent a SIGKILL
within this time, it will be sent a SIGKILL
:param expected_return_code: an expected return code of this process. 0 is the default. If process
:param expected_return_code: an expected return code of this process. 0 is the default. If process
returns anything else, ProcessFailed will be raise
returns anything else, ProcessFailed will be raise
:
param
ProcessFailed: process
'
result code was different from the requested
:
raises
ProcessFailed: process
'
result code was different from the requested
"""
"""
if
isinstance
(
args
,
str
):
if
isinstance
(
args
,
str
):
args
=
args
.
split
(
'
'
)
args
=
args
.
split
(
'
'
)
logger
.
warning
(
'
Modifying kwargs
'
)
kwargs
[
'
stdout
'
]
=
subprocess
.
PIPE
kwargs
[
'
stdout
'
]
=
subprocess
.
PIPE
stdout_list
=
[]
stdout_list
=
[]
logger
.
warning
(
'
Starting popen
'
)
proc
=
subprocess
.
Popen
(
args
,
**
kwargs
)
proc
=
subprocess
.
Popen
(
args
,
**
kwargs
)
reader_thread
=
threading
.
Thread
(
target
=
read_nowait
,
args
=
(
proc
,
stdout_list
),
daemon
=
True
)
reader_thread
=
threading
.
Thread
(
target
=
read_nowait
,
args
=
(
proc
,
stdout_list
),
daemon
=
True
)
logger
.
warning
(
'
Starting rt
'
)
reader_thread
.
start
()
reader_thread
.
start
()
logger
.
warning
(
'
Waiting for termination
'
)
try
:
try
:
proc
.
wait
(
timeout
=
timeout
)
proc
.
wait
(
timeout
=
timeout
)
except
subprocess
.
TimeoutExpired
:
except
subprocess
.
TimeoutExpired
:
proc
.
kill
()
proc
.
kill
()
proc
.
wait
()
proc
.
wait
()
logger
.
warning
(
'
Terminated
'
)
if
proc
.
returncode
!=
expected_return_code
:
if
proc
.
returncode
!=
expected_return_code
:
raise
ProcessFailed
(
proc
.
returncode
)
raise
ProcessFailed
(
proc
.
returncode
)
...
...
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