feat: CD_BYPASS_UPLOAD
This commit is contained in:
		
							parent
							
								
									697fd52349
								
							
						
					
					
						commit
						00d827e232
					
				@ -30,6 +30,10 @@ api_task = None
 | 
			
		||||
 | 
			
		||||
cd_enable_log = os.environ.get('CD_ENABLE_LOG', 'false').lower() == 'true'
 | 
			
		||||
cd_enable_run_log = os.environ.get('CD_ENABLE_RUN_LOG', 'false').lower() == 'true'
 | 
			
		||||
bypass_upload = os.environ.get('CD_BYPASS_UPLOAD', 'false').lower() == 'true'
 | 
			
		||||
 | 
			
		||||
print("CD_BYPASS_UPLOAD", bypass_upload)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def clear_current_prompt(sid):
 | 
			
		||||
    prompt_server = server.PromptServer.instance
 | 
			
		||||
@ -974,6 +978,7 @@ async def update_run_with_output(prompt_id, data, node_id=None):
 | 
			
		||||
        "output_data": data
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if not bypass_upload:
 | 
			
		||||
        try:
 | 
			
		||||
            have_upload = 'images' in data or 'files' in data or 'gifs' in data or 'mesh' in data
 | 
			
		||||
            print("\nhave_upload", have_upload, node_id)
 | 
			
		||||
@ -987,7 +992,6 @@ async def update_run_with_output(prompt_id, data, node_id=None):
 | 
			
		||||
        except Exception as e:
 | 
			
		||||
            await handle_error(prompt_id, data, e)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    requests.post(status_endpoint, json=body)
 | 
			
		||||
 | 
			
		||||
    await send('outputs_uploaded', {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user