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

Confluent kafka producer refactoring. #2019

Merged

Conversation

DABND19
Copy link

@DABND19 DABND19 commented Jan 4, 2025

Description

  • Non-thread-safe operations have been removed from AsyncConfluentProducer
  • AsyncConfluentProducer.publish method now satisfies the contract
  • AsyncConfluentFastProducer type hints fixes

Type of change

Please delete options that are not relevant.

  • Bug fix (a non-breaking change that resolves an issue)

Checklist

  • My code adheres to the style guidelines of this project (scripts/lint.sh shows no errors)
  • I have conducted a self-review of my own code
  • I have made the necessary changes to the documentation
  • My changes do not generate any new warnings
  • I have added tests to validate the effectiveness of my fix or the functionality of my new feature
  • Both new and existing unit tests pass successfully on my local environment by running scripts/test-cov.sh
  • I have ensured that static analysis tests are passing by running scripts/static-analysis.sh
  • I have included code examples to illustrate the modifications

@DABND19 DABND19 marked this pull request as draft January 4, 2025 21:07

# should be sync to prevent segfault
self.producer.produce(topic, **kwargs)

if not no_confirm:
await result_future
return await result_future
Copy link
Author

Choose a reason for hiding this comment

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

@DABND19 DABND19 force-pushed the feat/confluent-kafka-producer-refactoring branch from 6ecdf73 to 774ecc3 Compare January 5, 2025 10:27
@DABND19 DABND19 marked this pull request as ready for review January 6, 2025 12:38
@DABND19 DABND19 changed the title Draft: Confluent kafka producer refactoring. Confluent kafka producer refactoring. Jan 6, 2025
@Lancetnik Lancetnik merged commit d5fb85e into airtai:0.6.0 Jan 7, 2025
41 of 45 checks passed
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