 db079c0c7d
			
		
	
	db079c0c7d
	
	
	
		
			
			- Updated the isAnyDeploymentInprogress function to check for running jobs based on the current hostname. - Enhanced the logic to return true if any job status is 'unknown' and to provide a clearer output regarding the number of deployments in progress. - Modified the cloud_upgrade.sh script to loop until the deployment status check confirms no ongoing deployments before proceeding with the upgrade.
		
			
				
	
	
		
			6 lines
		
	
	
		
			339 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			339 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| set -e
 | |
| export IMAGE=$1
 | |
| docker system prune -af
 | |
| docker compose pull
 | |
| read -p "Press Enter to update Coolify to $IMAGE..." </dev/tty
 | |
| while ! (docker exec coolify sh -c "php artisan tinker --execute='isAnyDeploymentInprogress()'" && docker compose up --remove-orphans --force-recreate -d --wait && echo $IMAGE > last_version); do sleep 1; done |