Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task orders #3

Open
kazcw opened this issue Oct 23, 2021 · 0 comments
Open

task orders #3

kazcw opened this issue Oct 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@kazcw
Copy link
Owner

kazcw commented Oct 23, 2021

Task order complements priority with a relative prioritization based on task status.

/// How to apply ordering algorithm across priorities
enum OrderType {
    /// --group-order (default): Priority takes precedence; order breaks ties
    Group,
    /// --global-order: Order algorithm takes precedence; priority breaks ties
    Global,
}

/// Order to take tasks
enum Order {
    /// --round-robin-running (default):
    /// Select a task with the fewest outstanding jobs
    /// (taken AND (NOT finished) AND (NOT superceded))
    RoundRobinRunning,
    /// --round-robin-taken: Select a task with the fewest taken jobs
    RoundRobinTaken,
    /// --sequential-tasks: Exhaust one task before moving on to the next
    Sequential,
}

Although Order::RoundRobinRunning will eventually be the default, I have only implemented Order::Sequential at this point.

@kazcw kazcw added the enhancement New feature or request label Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant