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: #4286 Co-Authored-By: Clemens Hoffmann <clemens.hoffmann@sap.com>
1 parent dde675b commit 52f18bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/actions/route_update.rb

Lines changed: 4 additions & 0 deletions
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)