FourThievesVinegar / solderless-microlab

GNU Affero General Public License v3.0
168 stars 20 forks source link

Removed celery, refactor hardware control #139

Closed 0phelia36 closed 8 months ago

0phelia36 commented 8 months ago

TL;DR

Removes celery, the program now runs as two separate processes, one for flask, another for controlling the hardware, communicating through a queue.

Fixes the issue where two different versions of the hardware code were running at the same time in celery and in flask.

Makes hardware control and configuration outside of recipes simpler.

Tasks are now run periodically by a thread on the hardware process, rather than continuously by a celery task.

What

What is affected by this PR?

Testing

How was this tested?

Notes

How was your day?

sparklestheunicorn commented 8 months ago

This looks good to me. I'll try it out on the full rig when I get my dev unit set back up again.