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

cache locking allows bypassing herd avoidance #87

Open
kylegibson opened this issue Jun 25, 2020 · 0 comments
Open

cache locking allows bypassing herd avoidance #87

kylegibson opened this issue Jun 25, 2020 · 0 comments

Comments

@kylegibson
Copy link
Member

kylegibson commented Jun 25, 2020

  1. two tasks (or more) enter apply_async at roughly the same time.
  2. cached result and herd avoidance checks pass for both
  3. both tasks hit the cache lock
  4. only 1 task is allowed in at a time, that task is scheduled
  5. the remaining tasks are still scheduled because they are after the herd avoidance check

https://github.com/PolicyStat/jobtastic/blob/master/jobtastic/task.py#L199

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

No branches or pull requests

1 participant