As a developer, I want to stop my running application so I can perform maintenance or save resources when the service is not needed.
# Stop application qrun stop --app orders-service --env prod # Force stop (skip graceful shutdown) qrun stop --app orders-service --env prod --force # With confirmation skip qrun stop --app orders-service --env prod --yes
Stopping orders-service in prod... Draining connections... done Waiting for graceful shutdown (30s timeout)... done Instances stopped: 3/3 Application orders-service stopped. To start again: qrun start --app orders-service --env prod
POST /v1/apps/{app}/stop Content-Type: application/json { "environment": "prod", "force": false, "gracePeriodSeconds": 30 } Response: { "status": "stopping", "stoppedInstances": 3, "message": "Application stop initiated" }
qctl-qrun/src/main/java/io/qrun/qctl/qrun/StopCommand.java
qctl-qrun/src/main/java/io/qrun/qctl/qrun/model/StopResult.java
qctl-qrun/src/main/java/io/qrun/qctl/qrun/client/VoyageClient.java
qctl-shared/src/main/java/io/qrun/qctl/shared/Confirmation.java
qrun stop --app <app> --env <env>
--force
No dependencies set.
The note is not visible to the blocked user.
User Story
As a developer, I want to stop my running application so I can perform maintenance or save resources when the service is not needed.
Design
Command Interface
Output Format
Voyage API Integration
Files to Create/Modify
qctl-qrun/src/main/java/io/qrun/qctl/qrun/StopCommand.javaqctl-qrun/src/main/java/io/qrun/qctl/qrun/model/StopResult.javaqctl-qrun/src/main/java/io/qrun/qctl/qrun/client/VoyageClient.javaqctl-shared/src/main/java/io/qrun/qctl/shared/Confirmation.javaImplementation Tasks
Acceptance Criteria
qrun stop --app <app> --env <env>stops the application--forceskips graceful shutdown