Separate readiness check from health check
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone Build is passing
				
			This commit is contained in:
		| @@ -500,6 +500,13 @@ async def stream_wrapper(request): | |||||||
|  |  | ||||||
| @app.route("/readyz") | @app.route("/readyz") | ||||||
| async def ready_check(request): | async def ready_check(request): | ||||||
|  |     if app.ctx.mask is None: | ||||||
|  |         return response.text("Not enough frames", status=503) | ||||||
|  |     return response.text("OK") | ||||||
|  |  | ||||||
|  |  | ||||||
|  | @app.route("/healthz") | ||||||
|  | async def health_check(request): | ||||||
|     if app.ctx.mask is None: |     if app.ctx.mask is None: | ||||||
|         return response.text("Not enough frames", status=503) |         return response.text("Not enough frames", status=503) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user