refactor(playout): move daemon flag to thread class
This commit is contained in:
parent
d79cf00800
commit
64b3d164c9
6 changed files with 7 additions and 5 deletions
|
@ -34,6 +34,7 @@ signal.signal(signal.SIGTERM, shutdown_handler)
|
|||
|
||||
class PypoFetch(Thread):
|
||||
name = "fetch"
|
||||
daemon = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -12,6 +12,7 @@ from requests.exceptions import ConnectionError, HTTPError, Timeout
|
|||
|
||||
class PypoFile(Thread):
|
||||
name = "file"
|
||||
daemon = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -21,6 +21,7 @@ def is_file(media_item):
|
|||
|
||||
class PypoPush(Thread):
|
||||
name = "push"
|
||||
daemon = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -41,7 +42,6 @@ class PypoPush(Thread):
|
|||
self.pypo_liquidsoap = pypo_liquidsoap
|
||||
|
||||
self.plq = PypoLiqQueue(self.future_scheduled_queue, self.pypo_liquidsoap)
|
||||
self.plq.daemon = True
|
||||
self.plq.start()
|
||||
|
||||
def main(self):
|
||||
|
|
|
@ -22,6 +22,7 @@ signal.signal(signal.SIGTERM, shutdown_handler)
|
|||
|
||||
class PypoLiqQueue(Thread):
|
||||
name = "liquidsoap_queue"
|
||||
daemon = True
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue