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

scheduler: Log statistics of rejected jobs #5306

Merged
merged 1 commit into from Sep 21, 2023

Conversation

perlpunk
Copy link
Contributor

We want to know how many jobs are skipped because of no available workers matching requested WORKER_CLASS settings.

Related issues:

@perlpunk perlpunk force-pushed the scheduler-logging branch 3 times, most recently from f53c846 to a3731a5 Compare September 13, 2023 13:27
@perlpunk perlpunk changed the title scheduler: Log statistics of rejected workers scheduler: Log statistics of rejected jobs Sep 13, 2023
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (e134982) 98.31% compared to head (508ef3e) 98.32%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5306   +/-   ##
=======================================
  Coverage   98.31%   98.32%           
=======================================
  Files         389      389           
  Lines       37247    37285   +38     
=======================================
+ Hits        36621    36659   +38     
  Misses        626      626           
Files Changed Coverage Δ
lib/OpenQA/Scheduler/Model/Jobs.pm 97.61% <100.00%> (+0.10%) ⬆️
t/04-scheduler.t 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

lib/OpenQA/Scheduler/Model/Jobs.pm Outdated Show resolved Hide resolved
lib/OpenQA/Scheduler/Model/Jobs.pm Outdated Show resolved Hide resolved
Comment on lines +57 to +58
$jobinfo->{matching_workers} = _matching_workers($jobinfo, $free_workers, \%rejected);
delete $scheduled_jobs->{$id} unless @{$jobinfo->{matching_workers}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion:

Suggested change
$jobinfo->{matching_workers} = _matching_workers($jobinfo, $free_workers, \%rejected);
delete $scheduled_jobs->{$id} unless @{$jobinfo->{matching_workers}};
my $workers = $jobinfo->{matching_workers} = _matching_workers($jobinfo, $free_workers, \%rejected);
delete $scheduled_jobs->{$id} unless @$workers;

@perlpunk perlpunk force-pushed the scheduler-logging branch 2 times, most recently from c39533c to 8fbd0fd Compare September 21, 2023 20:53
We want to know how many jobs are skipped because of no available workers
matching requested WORKER_CLASS settings.

Related issues:
* https://progress.opensuse.org/issues/135578
* https://progress.opensuse.org/issues/129619
@mergify mergify bot merged commit 648de5c into os-autoinst:master Sep 21, 2023
36 checks passed
@perlpunk perlpunk deleted the scheduler-logging branch September 21, 2023 21:18
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

Successfully merging this pull request may close these issues.

None yet

4 participants