bored-table-2069105/21/2021, 11:26 PM
bored-oyster-314705/22/2021, 12:21 AM
lemon-agent-2770705/22/2021, 1:43 PM
Is it possible to kick off the automation in the background (or should I just queue up a Goroutine to do this)?Yes, queueing up a goroutine is the right thing to do here.
For a particular stack, is it possible to get the status of the current update (or even of an update with a particular ID)?What do you mean by "status"?
will return some minimal information, like whether or not an update is currently in proggress on the stack.
can show that same info over the last N updates.
If you are looking for an API to poll more detailed update metadata using just an ID, that doesn't exist yet. If you have ideas on info you'd like to see, please do open an issue with more details: github.com/pulumi/pulumi/issues/new
If I were to build something like this into my own app, I'd probably do something like the following:
1. submit updates into an async queue, store a task ID in sql
2. have N "automation api workers" consuming work from the queue and performing updates
3. each worker that starts an update consumes the structured event log. It reads structured events, and turns them into some format appropriate to display to your end users, stores that rollup in the SQL db with the associated task ID that your application can query.
bored-table-2069105/22/2021, 5:09 PM