https://pulumi.com logo
p

proud-pizza-80589

06/08/2023, 10:33 AM
I have a Service resource that i need to launch with skipAwait, then do some other things, and at the end still wait till the Service becomes healty. Is there a way to "await" manually?
h

hundreds-lunch-5706

06/09/2023, 6:25 PM
Are you able to kick off the service provisioning in a separate executor in your pulumi program and then just await that at the end? Instead of using
skipAwait
?
i

incalculable-camera-24952

06/23/2023, 7:44 PM
if you're using typescript, in general you can do things like:
Copy code
const someResourcePromise = getSomeResource().then(r => r).catch(e => console.error(e)) // notice no await
const foo = await getResourceFoo()
const bar = await getResourceBar()
const someResource = await someResourcePromise
const baz = await getResourceBaz(someResource)