cleanup not forced
This commit is contained in:
		@@ -18,15 +18,18 @@ use Illuminate\Support\Facades\Storage;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class Init extends Command
 | 
					class Init extends Command
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    protected $signature = 'app:init';
 | 
					    protected $signature = 'app:init {--cleanup}';
 | 
				
			||||||
    protected $description = 'Cleanup instance related stuffs';
 | 
					    protected $description = 'Cleanup instance related stuffs';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function handle()
 | 
					    public function handle()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        ray()->clearAll();
 | 
					        ray()->clearAll();
 | 
				
			||||||
        $this->cleanup_in_progress_application_deployments();
 | 
					        $cleanup = $this->option('cleanup');
 | 
				
			||||||
 | 
					        if ($cleanup) {
 | 
				
			||||||
            $this->cleanup_stucked_resources();
 | 
					            $this->cleanup_stucked_resources();
 | 
				
			||||||
        // $this->cleanup_ssh();
 | 
					            $this->cleanup_ssh();
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        $this->cleanup_in_progress_application_deployments();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private function cleanup_ssh()
 | 
					    private function cleanup_ssh()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user