project8 / dripline-python

python implementation of project8/dripline
Other
2 stars 0 forks source link

setup_calls and exchange declarations #32

Open wcpettus opened 6 years ago

wcpettus commented 6 years ago

Order-of-operations issue in service.py where setup_calls can send a message to queue before it necessarily exists. Possibly solution to #28 will fix this too.

Reproduce by:

Workaround: Remove the setup_calls, run any service to declare the two exchanges, then run as before and it works.

How have we not seen this before? Possibly because enough services have no setup calls and the exchanges get declared promptly? Possibly it's happened but before slack is up so we don't see the errors (slack has no setup_calls, so it will always work)?