pub async fn master(config: &Config, migrate: bool) -> Result<(), AppError>
schedr master: the gRPC service and the loop, until Ctrl-C or SIGTERM.
schedr master
As connect_database, lead, listen and serve_master.
connect_database
lead
listen
serve_master