New node joined the role for deployment ready

(Rex) #1

Hi All,

I have setup a few projects with deployment target trigger, so basically when a new node joined the role group, projects which has this deployment target trigger will start to deploy to the new node. but question here is how do I know all the related projects have finished deployment to this new node? I tried to look at the APIs for machine, cant really find anything which indicates all the deployments have finished for the new node ?

Thanks
Rex

(Ryan Rousseau) #3

Hi Rex,

Thanks for your question!

If you navigate to one of the targets in the web UI, there is a tab called Deployments that will show you recent deployments for this target.

The API call that provides this data looks something like this

https://demo.octopus.app/api/Spaces-1/machines/Machines-13784/tasks?skip=0

With your URL, space ID, and machine ID, you can query the tasks for a target and check their state.

I hope that helps!

Best,
Ryan