-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
[🐛 BUG]: Jobs AMQP headers with list type not mapped to RR job #1793
Comments
Hey @iborysenko 👋 EDIT: Also, attach your composer.json or specify versions. Also, if you push headers via separate script, attach it as well. |
Hey @rustatian jobs:
pipelines:
processing_pipeline:
driver: amqp
config:
queue: my-queue
exchange: my-exchange
routing_key: my-queue-routing-key
exchange_type: direct
exchange_durable: true
durable: true
consume_all: true
redial_timeout: 600
We are using Krakend-gateway to publish webhooks to the queue, and then RR consumes them headerValues := make([]interface{}, len(vs))
for k, v := range vs {
headerValues[k] = v
}
headers[k] = headerValues Anyway we will fork this lib and fix it for us, but I noticed that RR does not support these header type |
@iborysenko There is no |
I'm not sure, why do you think, that we support only |
Result will be {"id":"99c87c46-8935-49cd-94cd-e48a9697cc36","job":"deduced_by_rr","driver":"amqp","queue":"my-queue","headers":{"Traceparent":["00-bb7aeaec5ce34668d9dd163d1ee8dccb-aa92cee3135e0710-01"],"Uber-Trace-Id":["bb7aeaec5ce34668d9dd163d1ee8dccb:aa92cee3135e0710:0:1"],"stringHeader":["stringValue"]},"pipeline":"processing_pipeline"} |
Ok, in your case, this would be a slice of |
No duplicates 🥲.
What happened?
A bug happened!
Jobs AMQP headers with list type not mapped to RR job
Version (rr --version)
2023.3
How to reproduce the issue?
Publish message with list type headers
Relevant log output
No response
The text was updated successfully, but these errors were encountered: