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

Streak worker exception: going over cursor/list bounds #69

Open
davidwilemski opened this issue Jan 21, 2014 · 0 comments
Open

Streak worker exception: going over cursor/list bounds #69

davidwilemski opened this issue Jan 21, 2014 · 0 comments
Labels

Comments

@davidwilemski
Copy link
Owner

Traceback (most recent call last):
  File "/home/david/orl_env/local/lib/python2.7/site-packages/rq/worker.py", line 429, in perform_job
    rv = job.perform()
  File "/home/david/orl_env/local/lib/python2.7/site-packages/rq/job.py", line 348, in perform
    self._result = self.func(*self.args, **self.kwargs)
  File "/home/david/orl_env/local/lib/python2.7/site-packages/openrunlog/rqworkers.py", line 22, in calculate_streaks
    user.calculate_streaks(r)
  File "/home/david/orl_env/local/lib/python2.7/site-packages/openrunlog/models.py", line 252, in calculate_streaks
    self.streaks = self._calculate_streaks(runs)
  File "/home/david/orl_env/local/lib/python2.7/site-packages/openrunlog/models.py", line 276, in _calculate_streaks
    delta = relativedelta(runs[i+1].date, runs[i].date)
  File "/home/david/orl_env/local/lib/python2.7/site-packages/mongoengine/queryset/base.py", line 150, in __getitem__
    return queryset._document._from_son(queryset._cursor[key],
  File "/home/david/orl_env/local/lib/python2.7/site-packages/pymongo/cursor.py", line 472, in __getitem__
    raise IndexError("no such item for Cursor instance")
IndexError: no such item for Cursor instance
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

1 participant