FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Python-Microservices/pythonms at master · lp1dev/Python-Microservices · GitHub
lp1dev
/
Python-Microservices
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Python-Microservices
/
pythonms
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
35 lines (30 loc) · 727 Bytes
Breadcrumbs
Python-Microservices
/
pythonms
Copy path
File metadata and controls
executable file
·
35 lines (30 loc) · 727 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/python
#local imports
from
modules
.
worker
import
Worker
from
modules
.
server
import
Server
from
modules
.
commands
import
quit
#external imports
from
importlib
import
import_module
from
sys
import
stdout
import
logging
as
log
import
config
LOG_FILENAME
=
'python_manager.log'
worker
=
Worker
()
server
=
None
def
__init__
():
global
server
# log.basicConfig(filename=LOG_FILENAME,level=log.DEBUG)
log
.
basicConfig
(
level
=
log
.
DEBUG
)
server
=
Server
(
config
.
daemon
,
worker
)
worker
.
init
(
server
)
def
main
():
__init__
()
worker
.
start
()
server
.
start
()
log
.
info
(
'All tasks done. Stopping'
)
return
0
if
__name__
==
'__main__'
:
try
:
main
()
except
KeyboardInterrupt
as
e
:
quit
(
worker
, [],
server
)
Back
|
FazBrowse Home
|
New Git URL