furiko-io / furiko

Kubernetes cron and batch job platform
https://furiko.io
Apache License 2.0
483 stars 21 forks source link

feat(concurrency): Support variable MaxConcurrency #92

Closed irvinlim closed 2 years ago

irvinlim commented 2 years ago

Closes #16.

Implements MaxConcurrency in ConcurrencySpec, which allows specifying a custom maximum concurrency value. This applies to both Forbid and Enqueue.

codecov[bot] commented 2 years ago

Codecov Report

Merging #92 (9676753) into main (bdc131a) will decrease coverage by 0.03%. The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
- Coverage   63.28%   63.25%   -0.04%     
==========================================
  Files         203      203              
  Lines       10722    10735      +13     
==========================================
+ Hits         6785     6790       +5     
- Misses       3571     3581      +10     
+ Partials      366      364       -2     
Impacted Files Coverage Δ
...xecution/controllers/jobqueuecontroller/control.go 0.00% <0.00%> (-48.65%) :arrow_down:
...ution/controllers/jobqueuecontroller/controller.go 28.75% <0.00%> (-0.74%) :arrow_down:
apis/execution/v1alpha1/jobconfig_types.go 100.00% <100.00%> (ø)
apis/execution/v1alpha1/zz_generated.deepcopy.go 59.64% <100.00%> (+0.59%) :arrow_up:
...execution/controllers/croncontroller/reconciler.go 81.92% <100.00%> (+0.22%) :arrow_up:
...llers/jobqueuecontroller/reconciler_independent.go 79.36% <100.00%> (-1.52%) :arrow_down:
...lers/jobqueuecontroller/reconciler_perjobconfig.go 74.62% <100.00%> (+12.86%) :arrow_up:
pkg/execution/validation/validation.go 91.03% <100.00%> (+0.19%) :arrow_up:
...kg/execution/controllers/croncontroller/metrics.go 14.28% <0.00%> (-85.72%) :arrow_down:
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bdc131a...9676753. Read the comment docs.