Page MenuHomeSoftware Heritage

Add a --priority cmdline option to the 'swh-scheduler task add' tool
ClosedPublic

Authored by douardda on Jan 10 2019, 3:54 PM.

Diff Detail

Repository
rDSCH Scheduling utilities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Jan 10 2019, 3:54 PM
ardumont added inline comments.
swh/scheduler/cli.py
209

None is actually a value too.
currently, recurring by default do not have a priority at all.

ardumont added inline comments.Jan 10 2019, 4:53 PM
swh/scheduler/cli.py
209

recurring tasks*

ardumont requested changes to this revision.Jan 11 2019, 12:11 PM
ardumont added inline comments.
swh/scheduler/cli.py
209

To match the actual behavior, as the policy default to recurring, the default of priority matching is None.

This revision now requires changes to proceed.Jan 11 2019, 12:11 PM
douardda updated this revision to Diff 2952.Jan 14 2019, 11:31 AM

set priority default value to None

ardumont accepted this revision.Jan 14 2019, 11:32 AM
This revision is now accepted and ready to land.Jan 14 2019, 11:32 AM
This revision was automatically updated to reflect the committed changes.