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

Fix/improve reloading worker #3716

Merged
merged 3 commits into from Feb 11, 2021
Merged

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Feb 10, 2021


I've tested this on openqaworker11 by hot patching its service files and Worker.pm. I've also tested the globbing with systemctl reload used within the spec file. I've also tested the changes to the Makefile. Everything worked as expected.

Receiving SIGHUP is supposed to stop the worker as soon as possible without
interrupting ongoing jobs. Sending a 2nd SIGHUP should not make a
difference.

When the worker receives SIGTERM/SIGINT before or after receiving SIGHUP
then the SIGTERM/SIGINT of course still rule over SIGHUP (and the current
jobs stopped).
…n process

Otherwise e.g. isotovideo receives SIGHUP as well and terminates.
This should be more intuitive than the `systemd kill …` command (which of
course still be used). Like in the previous commit, SIGHUP is only sent
to the main worker process.
@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #3716 (02712a5) into master (3535603) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3716   +/-   ##
=======================================
  Coverage   96.38%   96.38%           
=======================================
  Files         369      369           
  Lines       32273    32279    +6     
=======================================
+ Hits        31105    31111    +6     
  Misses       1168     1168           
Impacted Files Coverage Δ
lib/OpenQA/Worker.pm 95.47% <100.00%> (+0.01%) ⬆️
t/24-worker-overall.t 100.00% <100.00%> (ø)

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 3535603...02712a5. Read the comment docs.

Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

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

Very nice :)

@Martchus Martchus merged commit 1640cfb into os-autoinst:master Feb 11, 2021
@Martchus Martchus deleted the worker-reloading branch February 11, 2021 09:27
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

2 participants