Skip to content

intelmqctl: On stop wait longer for bots to be stopped #2598

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

Lukas-Heindl
Copy link
Contributor

@Lukas-Heindl Lukas-Heindl commented Apr 11, 2025

fixes #2595

retry multiple times on intelmqctl stop to check if bots really stopped, since the bots might take longer to stop. Using retry in constrast to increasing the sleep_time keeps the delay short in case the bots did already stop.

Note: I intend to make at least the amount of retries performed configurable so that if the current total sleep_time of 4.75 seconds does not suffice for some users they are able to increase it.

@Lukas-Heindl Lukas-Heindl marked this pull request as ready for review April 14, 2025 14:08
@sebix
Copy link
Member

sebix commented Apr 17, 2025

the 3.10 pytest fail is unrelated (see #2602)

@Lukas-Heindl
Copy link
Contributor Author

I put quite some comments in there. Looking at the other code, I see much less comments. If I should shrink the comments just let me know.

@sebix
Copy link
Member

sebix commented Apr 17, 2025

If I should shrink the comments just let me know.

Please not, inline comments are great :)

@Lukas-Heindl
Copy link
Contributor Author

Alright then. The tests (that shall pass) pass. Any additional feedback? (also notify if not, so I can squash the commits into one commit)

retry multiple times on `intelmqctl stop` to check if bots really
stopped, since the bots might take longer to stop.
Using retry in constrast to increasing the sleep_time keeps the delay
short in case the bots did already stop.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

intelmqctl stop bots are still running
2 participants