wheels deploy stop
Stop an active deployment or deployment services.
Synopsis
Description
The wheels deploy stop
command halts active deployments, stops deployment services, or shuts down deployed applications. It provides controlled shutdown capabilities for maintenance, emergency stops, or cleanup operations.
Options
--deployment-id, -d
- Specific deployment to stop--environment, -e
- Target environment (default: production)--force
- Force stop without graceful shutdown--timeout
- Graceful shutdown timeout in seconds (default: 300)--service
- Stop specific service only--all
- Stop all deployments and services--reason
- Reason for stopping (required for audit)--notify
- Send notifications about stop action--backup
- Create backup before stopping
Examples
Stop active deployment
Emergency stop
Graceful shutdown
Stop specific service
Stop all services
Stop Types
Graceful stop
Default behavior that ensures clean shutdown:
Process:
Stop accepting new requests
Complete active requests
Flush caches and buffers
Close database connections
Terminate processes
Force stop
Immediate termination for emergencies:
Process:
Send SIGTERM to all processes
Wait 10 seconds
Send SIGKILL if needed
Force close connections
Partial stop
Stop specific components:
Use Cases
Maintenance window
Emergency response
Rolling stop
Scheduled stop
Stop Process Details
Pre-stop actions
Validate stop request
Check for active operations
Create backup if requested
Send notifications
Update deployment status
Stop sequence
Mark deployment as stopping
Stop load balancer traffic
Drain active connections
Stop application services
Stop background jobs
Release resources
Update status to stopped
Post-stop actions
Verify all services stopped
Log stop completion
Send completion notifications
Update monitoring systems
Release deployment locks
Service-Specific Stops
Web servers
Stops accepting new connections
Completes active requests
Removes from load balancer
Database
Creates final backup
Closes all connections
Flushes buffers
Stops database service
Cache services
Persists cache to disk
Stops cache service
Preserves cache data
Queue workers
Stops accepting new jobs
Completes current jobs
Gracefully shuts down
Best Practices
Always provide reasons: Document why services were stopped
Use graceful stops: Allow services to shut down cleanly
Create backups: Backup before stopping production services
Notify stakeholders: Inform team about stop actions
Monitor stop process: Ensure services stop correctly
Plan restarts: Have restart procedures ready
Test stop procedures: Practice emergency stops
Error Handling
Stop failures
Hung processes
Rollback after stop
Integration
Stop operations integrate with:
Monitoring systems for stop alerts
Load balancers for traffic management
Backup systems for pre-stop backups
Notification systems for team alerts
Monitoring integration
Load balancer integration
Recovery
Restart after stop
Verify recovery
See Also
Last updated
Was this helpful?