Skip to content

Conversation

hamishforbes
Copy link

Fix 2 cases where job data fields (state and worker) are passed to unpack even though they are strings.

The first case (state), the variable was unused anyway so I just removed it totally.

@dlecocq
Copy link

dlecocq commented Aug 6, 2018

I believe QlessJob:data always returns a table. Still, the tests pass both ways, and test_events.py's TestEvents.test_failed_retries exercises this code.

@hamishforbes
Copy link
Author

hamishforbes commented Aug 6, 2018

Oh I see, sorry that's my bad. I looked at that and though it was indexing the return from data().
Didn't notice that its an argument that filters the return value.

The variable is still unused in the first change (state) but looks like the worker one should be broken.
I'll remove that change

edit: I think actually the errors we were seeing were caused by a too-small Redis memory limit causing evictions in the middle of job processing

@dlecocq
Copy link

dlecocq commented Aug 6, 2018

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants