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

feat(signals): Improve send signals process #24

Merged
merged 14 commits into from
Feb 23, 2024

Conversation

julienloizelet
Copy link
Collaborator

  • Use batch
  • Use more precise SQL requests

@julienloizelet julienloizelet self-assigned this Feb 23, 2024
@julienloizelet julienloizelet requested a review from rr404 February 23, 2024 02:01
Copy link
Collaborator

@rr404 rr404 left a comment

Choose a reason for hiding this comment

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

Just check my [warn] remark about incrementing the offset if you're not pruning

@julienloizelet julienloizelet requested a review from rr404 February 23, 2024 09:05
Copy link
Collaborator

@rr404 rr404 left a comment

Choose a reason for hiding this comment

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

LGTM

@rr404 rr404 merged commit f1c43d3 into crowdsecurity:main Feb 23, 2024
16 checks passed
julienloizelet added a commit to julienloizelet/crowdsec-python-capi-sdk that referenced this pull request Mar 14, 2024
* feat(sqlstorage): Add limit and offset arguments in get_all_signals function
* feat(sqlstorage): Change delete_signals and delete_machines method to improve pruning
* test(*): Add some test path to gitignore
* feat(storage): Modify get_all_signals to have sent and is_failing param
* feat(client): Add batch_size param for send_signals and prune_failing_machines_signals
* feat(storage): Rename get_all_signals to get_signals
* feat(log): Improve log messages
* feat(signal): Return number of sent and pruned signal in related methods
* test(*): Add test for get_signals
* chore(changelog): Prepare release 0.4.0
* fix(send): Do not offset even if no prune as we are taking only not sent signals
* feat(signals): Rename _send_signals to _send_signals_to_capi
* style(*): Pass through lint
* style(*): Pass through lint
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.

2 participants