import '../core/api_gateway.dart'; import '../core/servers/server_scope.dart'; import 'server_endpoint.dart'; /// The scope that isolates a server's pending launch intents. Pipelines and /// Runs must compute the same scope, or a lost reply could be retried under a /// different key from the one the Pipelines tab would check. String pendingRunScope(ApiGateway gateway, ServerEndpoint server) { final identity = serverIdentity(gateway); return identity == null ? server.uri?.toString() ?? '' : 'profile:$identity'; }