Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/cli/__init__.py
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | except (ValueError, OperationalError): | ||||
# it's the subcommand to decide whether not having a proper | # it's the subcommand to decide whether not having a proper | ||||
# scheduler instance is a problem. | # scheduler instance is a problem. | ||||
pass | pass | ||||
ctx.obj["scheduler"] = scheduler | ctx.obj["scheduler"] = scheduler | ||||
ctx.obj["config"] = conf | ctx.obj["config"] = conf | ||||
from . import admin, celery_monitor, origin, task, task_type # noqa | from . import admin, celery_monitor, origin, simulator, task, task_type # noqa | ||||
def main(): | def main(): | ||||
import click.core | import click.core | ||||
click.core.DEPRECATED_HELP_NOTICE = """ | click.core.DEPRECATED_HELP_NOTICE = """ | ||||
DEPRECATED! Please use the command 'swh scheduler'.""" | DEPRECATED! Please use the command 'swh scheduler'.""" | ||||
cli.deprecated = True | cli.deprecated = True | ||||
return cli(auto_envvar_prefix="SWH_SCHEDULER") | return cli(auto_envvar_prefix="SWH_SCHEDULER") | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
main() | main() |