Skip to content
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

user_script:70: too many results to unpack #2709

Closed
yixiangfeng opened this issue Feb 19, 2024 · 3 comments
Closed

user_script:70: too many results to unpack #2709

yixiangfeng opened this issue Feb 19, 2024 · 3 comments
Labels

Comments

@yixiangfeng
Copy link

Description

my job queue processor some time can complete and no throw the unpack error. after few time the job will return the unpack error.
螢幕截圖 2024-02-19 11 10 22

Minimal, Working Test code to reproduce the issue.

(An easy to reproduce test case will dramatically decrease the resolution time.)

Bull version

v4.10.4

Additional information

my redis have 19 queues
some queues will have repeat job

how to solve the problem

Copy link

stale bot commented Apr 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 21, 2024
@stale stale bot closed this as completed May 2, 2024
@matt-moven
Copy link

We also ran into this bug and traced it down to the collectMetrics function in "moveToFinished-9.lua". We set metrics.maxDataPoints to 1. In moveToFinished, collectMetrics tries to add the current metric and also fill in zero values for all the missed seconds, and then trims that list down to maxDataPoints. If a queue sees no jobs for enough time, and then processes a job and tries to update its metrics, the unpack() with one metric and many zeros fails with error "too many results to unpack".

rcall("LPUSH", dataPointsList, unpack(points))

@matt-moven
Copy link

Reopened as #2764

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

No branches or pull requests

2 participants