Skip to content

Commit 52f18bf

Browse files
maxmoehlhoffmaen
andcommitted
feat: notify diego of route updates
After updating a route via the new update route endpoint, it was only stored in the database. Since routes can be changed without restarting the application this commit adds logic to also push the update to diego. Resolves: cloudfoundry#4286 Co-Authored-By: Clemens Hoffmann <[email protected]>
1 parent dde675b commit 52f18bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/actions/route_update.rb

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ def update(route:, message:)
66

77
route.save
88
MetadataUpdate.update(route, message)
9+
10+
route.apps.each do |process|
11+
ProcessRouteHandler.new(process).notify_backend_of_route_update
12+
end
913
end
1014

1115
route

0 commit comments

Comments
 (0)