def master(): log.info('Scannertools: starting master...') scannerpy.start_master(port='8080', block=True, watchdog=False, no_workers_timeout=int( os.environ['NO_WORKERS_TIMEOUT']))
import scannerpy import os scannerpy.start_master( port='8080', block=True, watchdog=False, prefetch_table_metadata=True, no_workers_timeout=180)
import scannerpy import os if __name__ == "__main__": scannerpy.start_master(port='8080', block=True, watchdog=False, no_workers_timeout=180)
from scannerpy import start_master import os # TODO(wcrichto): don't hardcode 8080 start_master(port='8080', block=True, watchdog=False)