Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open
stapled
Commits
b924b8f9
Commit
b924b8f9
authored
Sep 11, 2019
by
Chris
Browse files
Allow one-off tasks with haproxy sockets to start and finish.
parent
d95216a0
Pipeline
#8421
failed with stages
in 3 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
stapled/core/daemon.py
View file @
b924b8f9
...
...
@@ -285,7 +285,7 @@ class Stapledaemon(object):
]
# Check if enabled before adding stapleadder queue.
if
self
.
staple_adder
:
stop_threads
.
append
((
'add
er
'
,
[
self
.
staple_adder
]))
stop_threads
.
append
((
'
proxy-
add'
,
[
self
.
staple_adder
]))
def
one_off_generator
():
"""Make generator to iteratively end the stapled process."""
...
...
@@ -297,7 +297,8 @@ class Stapledaemon(object):
for
queue
,
threads
in
stop_threads
:
# Queue must exist, if it doesn't it wasn't yet created.
if
not
self
.
scheduler
.
queue_exists
(
queue
):
# Wait for it to be created.
while
not
self
.
scheduler
.
queue_exists
(
queue
):
yield
False
# Wait until queues are empty..
...
...
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