-
Notifications
You must be signed in to change notification settings - Fork 894
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
Chord Callback Called Multiple Time #30
Comments
FYI, this affects mongo backend as well. Broker: amqp. This happens in the default example. It happens intermittently, there seems to be race condition somewhere.
|
@vamsu Update. This has been fixed for Redis backend now. The way to fix it is using distributed locks. For MongoDB backend, you could fix this bug by implementing this method: https://github.com/RichardKnop/machinery/blob/master/v1/backends/mongodb.go#L100 See Redis implementation for reference: https://github.com/RichardKnop/machinery/blob/master/v1/backends/redis.go#L98 |
Chord callback is being called N times where N is number of tasks in the group.
This affects Redis and Memcache backends. AMQP backend is not affected.
Workaround until this is fixed is to make sure chord callback is idempotent.
The text was updated successfully, but these errors were encountered: