Skip to content

Several swwh-scheduler's cli improvements

  • Add a --list option to the 'swh-scheduler task' command that lists available task types.

  • Add a new policy argument to SchedulerBackend.create_tasks

    so that we can expose it to cli tools.

  • Add a new 'swh-schedule task add' command

    that allows to easily insert a new task in the scheduler's database, eg.

    swh-scheduler --database 'service=swh-scheduler'
    task add swh-lister-debian distribution=stretch policy=oneshot

  • Refactor a bit the 'swh-scheduler task list-pending' cli tool

    since the task-type is mandatory, make it a command argument instead of an option, and make it variadic, so one can list several pending task types at once.

    Also do not use the pager. Let the user decide whether she wants paginated results.


Migrated from D854 (view on Phabricator)

Merge request reports