Skip to content

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)

@Lukas-Heindl
Copy link
Contributor Author

Is there something still blocking the merge? (please don't feel pressured, I just want to avoid this got lost in the whole fixing the pytest pipelines issue)

@Lukas-Heindl
Copy link
Contributor Author

Friendly reminder for this PR.

@sebix
Copy link
Member

sebix commented May 28, 2025

Is there something still blocking the merge? (please don't feel pressured, I just want to avoid this got lost in the whole fixing the pytest pipelines issue)

A code review and testing (+ changelog entry, but that's minor). Most of us do that work honorary, so it's sometimes hard to find the time.

@Lukas-Heindl
Copy link
Contributor Author

Alright 👍

I know finding times in the free time for such things is always hard. Personally I also always say contributing to OSS is not supposed to make your live more stressfull, instead it is supposed to be fun. So I didn't want to bother you, it's really mostly about avoiding this PR getting lost (I know that edge is sometimes sharp)

@sebix sebix added feature Indicates new feature requests or new features component: core component: intelmqctl and removed component: core labels Jul 18, 2025
@sebix sebix added this to the 3.4.1 Patch release milestone Aug 11, 2025
Copy link
Member

@sebix sebix left a comment

Choose a reason for hiding this comment

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

The code looks OK now, thanks.

But your PR introduces a bug:

Expected behaviour:

intelmq@localhost:~> intelmqctl -t json stop 
{
    "deduplicator-expert": "disabled",
    "feodo-tracker-browse-collector": "disabled",
    "feodo-tracker-browse-parser": "stopped",
    "file-output": "stopped",
    "postgres-output": "stopped",
    "spamhaus-drop-collector": "disabled",
    "spamhaus-drop-parser": "stopped",
    "taxonomy-expert": "stopped"
}

Current behaviour:

intelmq@localhost:~> intelmqctl -t json stop 
{}

@Lukas-Heindl
Copy link
Contributor Author

Oh yes. In the last iteration I removed the update to botnet_status accidentally. It is back in so the issue should be fixed now.

(I'm only updating the bot_ids in stopped_but_still_running_bots as the others are not expected to change in the meantime (as far as I thought this through). But we can easily iterate over all bots for this update.)

Lukas-Heindl and others added 9 commits August 18, 2025 21:20
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.
@sebix
Copy link
Member

sebix commented Aug 18, 2025

rebased on develop and added a changelog entry

@sebix sebix merged commit 5b01295 into certtools:develop Aug 18, 2025
20 checks passed
@sebix
Copy link
Member

sebix commented Aug 18, 2025

Thank you for your contribution and especially for your patience!

The patch will be included in the next IntelMQ release coming end of week.

@Lukas-Heindl
Copy link
Contributor Author

Thanks for reviewing and improving the quality of the contribution.

Having the changes so soon (with the new release, so without installing from some other branch or so) is also quite nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: intelmqctl feature Indicates new feature requests or new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

intelmqctl stop bots are still running
2 participants