Send back-end log results to the front-end via the queue
We currently post the results of back-end operations back to the front-end via an HTTP endpoint, that then saves the results to a field on the Operation.
Now that we've de-coupled the front-end and back-end components, we should pipe results back through the queue.
One challenge here is that the Drupal-based front-end is not persistent, and so there's no way for it to poll the queue synchronously. The queue should be able to store this data temporarily. The front-end can then poll for it in one of two ways:
- If someone's actually looking at the log, we can poll via AJAX, similar to what we do now.
- Alternatively, if no one's looking, there's no urgency, so we can poll via cron, on page loads, using as service worker, or similar.
Note we should call this "Schrödinger's Log" :)
Edited by Christopher Gervais