django-q icon indicating copy to clipboard operation
django-q copied to clipboard

async_chain not passing correct args

Open tykkimies opened this issue 3 years ago • 0 comments

I have a set of functions that i'm trying to chain with async_chain, but it seems on my second function its taking my string that i pass in as an argument and separating each letter by a comma. The string usually will be a 6 digit number. My snippet below is exactly whats in my code. The reqCreate function for example might get a string that looks like 340210. This is the req.req_id argument i pass. The task ultimately fails, and when i check the admin panel it shows the args given as 3,4,0,2,1,0 giving it 6 arguments instead of the 1 the function needs. I confirmed that the variable is indeed a string type. From what i can tell the make_JiraMatch gets the correct arguments. Never make it to the third function because number 2 fails. I have tried taking out my variable, and straight up typing a string in its place and it still gives me a comma list. I have this exact setup working, but using the chain class and chain.append for each function, but that doesn't give me a view in the admin panel which i would prefer. Is this some sort of bug, or am i completely missing the way this should format?

async_chain([make_JiraMatch, (req, item, None)), reqCreate, (req.req_id), AjaxUpdate, (None, item.id, '', 'NOTES', ruser)])

tykkimies avatar Aug 26 '22 10:08 tykkimies