You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using celery to offload some tasks from my python server
I have a function which is decorated with the @shared_task decorator.
I pass an argument to this function which is a dictionary like this:
my_dict = {1:2,3:4}
Both the key and the value are integer types.
When I pass this in the celery function and try to do this:
my_dict.get(1) # searching for the key 1 (integer) in my_dict, it returns nothing
and if I do
my_dict.get("1") it returns the value 2 (in type integer)
This means that somehow celery is changing the type of the keys in my dictionary.
Can you help me out in finding the RCA for this?
Checklist
I have verified that the issue exists against the main branch of Celery.
I am using celery to offload some tasks from my python server
I have a function which is decorated with the @shared_task decorator.
I pass an argument to this function which is a dictionary like this:
my_dict = {1:2,3:4}
Both the key and the value are integer types.
When I pass this in the celery function and try to do this:
my_dict.get(1) # searching for the key 1 (integer) in my_dict, it returns nothing
and if I do
my_dict.get("1") it returns the value 2 (in type integer)
This means that somehow celery is changing the type of the keys in my dictionary.
Can you help me out in finding the RCA for this?
Checklist
main
branch of Celery.contribution guide
on reporting bugs.
for similar or identical bug reports.
for existing proposed fixes.
to find out if the bug was already fixed in the main branch.
in this issue (If there are none, check this box anyway).
Mandatory Debugging Information
celery -A proj report
in the issue.(if you are not able to do this, then at least specify the Celery
version affected).
main
branch of Celery.pip freeze
in the issue.to reproduce this bug.
Optional Debugging Information
and/or implementation.
result backend.
broker and/or result backend.
ETA/Countdown & rate limits disabled.
and/or upgrading Celery and its dependencies.
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Environment & Settings
Celery version:
celery report
Output:Steps to Reproduce
Required Dependencies
Python Packages
pip freeze
Output:Other Dependencies
N/A
Minimally Reproducible Test Case
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: