openwisp / openwisp-controller

Network and WiFi controller: provisioning, configuration management and updates, (pull via openwisp-config or push via SSH), x509 PKI management and more. Mainly OpenWRT, but designed to work also on other systems.
https://openwisp.io/docs/dev/controller/
Other
556 stars 182 forks source link

[controller] Regression: more push updates may be executed simultaneously #271

Closed nemesifier closed 4 years ago

nemesifier commented 4 years ago

Create a device with a configuration, enable push configuration via SSH.

Run the dev server and the celery worker

Change the templates, hit save.

Expected behavior:

Actual behavior:

I tried a quick fix which solved the issue. This bug was probably introduced in https://github.com/openwisp/openwisp-controller/pull/248. There's a check which ensures there's no more than one task running, but also that check needs to be done after the transaction has been committed to the database or is useless.

nemesifier commented 4 years ago

Not fixed yet :(

nemesifier commented 4 years ago

Should be fixed by #286.