Compare commits
3 Commits
f8e05effbc
...
179a42ac78
Author | SHA1 | Date |
---|---|---|
|
179a42ac78 | |
|
b101cc19ee | |
|
d4f1769d64 |
|
@ -471,11 +471,15 @@ def search(
|
|||
|
||||
'''
|
||||
# global opts
|
||||
brokermods = list(config['brokermods'].values())
|
||||
brokermods: list[ModuleType] = list(config['brokermods'].values())
|
||||
|
||||
# TODO: this is coming from the `search --pdb` NOT from
|
||||
# the `piker --pdb` XD ..
|
||||
# -[ ] pull from the parent click ctx's values..dumdum
|
||||
# assert pdb
|
||||
|
||||
# define tractor entrypoint
|
||||
async def main(func):
|
||||
|
||||
async with maybe_open_pikerd(
|
||||
loglevel=config['loglevel'],
|
||||
debug_mode=pdb,
|
||||
|
|
|
@ -140,11 +140,10 @@ def pikerd(
|
|||
|
||||
if pdb:
|
||||
log.warning((
|
||||
"\n"
|
||||
"!!! YOU HAVE ENABLED DAEMON DEBUG MODE !!!\n"
|
||||
"When a `piker` daemon crashes it will block the "
|
||||
"task-thread until resumed from console!\n"
|
||||
"\n"
|
||||
'\n\n'
|
||||
'!!! YOU HAVE ENABLED DAEMON DEBUG MODE !!!\n'
|
||||
'When a `piker` daemon crashes it will block the '
|
||||
'task-thread until resumed from console!\n'
|
||||
))
|
||||
|
||||
# service-actor registry endpoint socket-address set
|
||||
|
@ -177,7 +176,7 @@ def pikerd(
|
|||
from .. import service
|
||||
|
||||
async def main():
|
||||
service_mngr: service.Services
|
||||
service_mngr: service.ServiceMngr
|
||||
|
||||
async with (
|
||||
service.open_pikerd(
|
||||
|
|
|
@ -119,6 +119,10 @@ async def open_piker_runtime(
|
|||
# spawn other specialized daemons I think?
|
||||
enable_modules=enable_modules,
|
||||
|
||||
# TODO: how to configure this?
|
||||
# keep it on by default if debug mode is set?
|
||||
maybe_enable_greenback=False,
|
||||
|
||||
**tractor_kwargs,
|
||||
) as actor,
|
||||
|
||||
|
|
Loading…
Reference in New Issue