taskiq icon indicating copy to clipboard operation
taskiq copied to clipboard

Brocker kick exception is not specific

Open luis8 opened this issue 9 months ago • 3 comments

I'm currently trying to understand what's going on when i hit an error in an aws lambda. However it only shows "SendTaskError: Cannot send task to the queue"

https://github.com/taskiq-python/taskiq/blob/master/taskiq/kicker.py#L163

We need to add more details to it in order to understand what went wrong

luis8 avatar Apr 10 '25 14:04 luis8

First question is do you call broker.startup?

The second is can you tell me where the message is printed? There should be at least a module name in log lines. I'll add more verbosity in that place.

s3rius avatar Apr 10 '25 14:04 s3rius

@s3rius thank you for taking the time to look at the issue. The problem was the startup. If you have the time adding a hint or detecting if it was not called would help a lot for this cases

luis8 avatar Apr 24 '25 17:04 luis8

Yes, it might be helpful. Okay, I'll see what we can do with it.

s3rius avatar Apr 24 '25 17:04 s3rius