furiko-io / furiko

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

feat(execution): Support maxEnqueuedJobs #43

Closed irvinlim closed 2 years ago

irvinlim commented 2 years ago

Closes #15.

Adds a new config field maxEnqueuedJobs, which defines the global maximum of enqueued jobs that can be created per JobConfig.

codecov[bot] commented 2 years ago

Codecov Report

Merging #43 (b397309) into main (5245548) will decrease coverage by 0.44%. The diff coverage is 29.35%.

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
- Coverage   51.89%   51.45%   -0.45%     
==========================================
  Files         162      163       +1     
  Lines        8024     8095      +71     
==========================================
+ Hits         4164     4165       +1     
- Misses       3664     3731      +67     
- Partials      196      199       +3     
Impacted Files Coverage Δ
apis/config/v1alpha1/dynamicconfig_types.go 100.00% <ø> (ø)
apis/config/v1alpha1/zz_generated.deepcopy.go 0.00% <0.00%> (ø)
...execution/controllers/croncontroller/controller.go 25.00% <0.00%> (+1.31%) :arrow_up:
...g/execution/controllers/croncontroller/recorder.go 0.00% <0.00%> (ø)
pkg/execution/mutation/mutation.go 84.37% <0.00%> (-0.45%) :arrow_down:
pkg/runtime/controllercontext/context_configs.go 18.64% <33.33%> (+2.64%) :arrow_up:
pkg/execution/validation/validation.go 91.95% <73.68%> (-1.47%) :arrow_down:
...execution/controllers/croncontroller/reconciler.go 81.70% <76.92%> (-5.64%) :arrow_down:
...kg/execution/controllers/croncontroller/control.go 100.00% <100.00%> (ø)
pkg/runtime/configloader/defaults_loader.go 63.15% <100.00%> (+0.99%) :arrow_up:
... and 2 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 5245548...b397309. Read the comment docs.