Skip to content

Conversation

@Egg3141592654
Copy link

This commit enables the consume method for the deserializing consumer. Encountering some issues running tests in WSL2, will create a VM and try to run tests fully there.

- This commit still needs unit tests, as tox is not yet working on my machine.
@ghost
Copy link

ghost commented Apr 14, 2021

It looks like @Egg3141592654 hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement here.

Once you've signed reply with [clabot:check] to prove it.

Appreciation of efforts,

clabot

@Egg3141592654
Copy link
Author

It looks like @Egg3141592654 hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement here.

Once you've signed reply with [clabot:check] to prove it.

Appreciation of efforts,

clabot

[clabot:check]

@ghost
Copy link

ghost commented Apr 14, 2021

@confluentinc It looks like @Egg3141592654 just signed our Contributor License Agreement. 👍

Always at your service,

clabot


for message in messages:
if message.error() is not None:
raise ConsumeError(message.error(), kafka_message=message)
Copy link
Contributor

Choose a reason for hiding this comment

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

this implementation effectively causes message without error to be thrown away, which is probably not ideal.

thanks for the PR, currently re-considering the need for batch consume.

Copy link
Author

Choose a reason for hiding this comment

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

Good point, only did this to ensure that we kept parity with the singular API, but returning the messages with the error code is likely the better idea. I removed the exception throw.

$ python3 -m venv venv_test
$ source venv_test/bin/activate
$ pip install -r test/requirements.txt
$ pip install -r tests/requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

.gitignore Outdated
.idea
tmp-KafkaCluster
.venv
venv_test/*
Copy link
Contributor

Choose a reason for hiding this comment

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

👍
but a newline would be nice.

Copy link
Contributor

Choose a reason for hiding this comment

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

No need for *, the dir is sufficient.

@raphaelauv
Copy link

raphaelauv commented May 17, 2021

Nice I really hope this will be part of 1.8.0 👍

@cla-assistant
Copy link

cla-assistant bot commented Aug 15, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Egg3141592654 Egg3141592654 closed this by deleting the head repository Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants