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

Allow clients to estimate job sizes #90

Open
talex5 opened this issue Nov 23, 2020 · 0 comments
Open

Allow clients to estimate job sizes #90

talex5 opened this issue Nov 23, 2020 · 0 comments

Comments

@talex5
Copy link
Contributor

talex5 commented Nov 23, 2020

At the moment, the scheduler hard-codes time estimates for cached and non-cached jobs based on ocaml-ci's usage patterns:

let default_estimate = S.{
cached = 10; (* A build with cached dependencies usually only takes about 10 seconds. *)
non_cached = 600; (* If we have to install dependencies, it'll probably take about 10 minutes. *)
}
let cost_estimate _t = default_estimate

We should let the client pass its own estimates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant