-
Notifications
You must be signed in to change notification settings - Fork 263
Closed
Labels
feature requestA new lefthook feature descriptionA new lefthook feature description
Description
⚡ Summary
Would good to have parallel: true work with priorities.
Value
Faster runs containing priorities (~ dependencies).
Behavior and configuration changes
For example:
foo:
parallel: true
commands:
cmd-a:
priority: 1
cmd-b:
priority: 2
cmd-c:
priority: 3
cmd-d:
# no priority set
cmd-e:
priority: 1
cmd-f:
priority: 3...and lefthook run foo would result in the commands to be run in parallel within groups determined by priority.
So the order of execution would go in sequence
- priority 1: cmd-a and cmd-e in parallel
- priority 2 (after prio 1 jobs complete): cmd-b alone
- priority 3 (after prio 2 jobs complete): cmd-c and cmd-f in parallel
- priority +Infinity (after prio 3 jobs complete): cmd-d alone
notramo and ztzxt
Metadata
Metadata
Assignees
Labels
feature requestA new lefthook feature descriptionA new lefthook feature description