georg
georg
RRunPod
Created by georg on 12/29/2023 in #⚡|serverless
Image is generated successfully, but cant not found for sending back
I fixed it, there was a Preview Image in the Flow. I removed it and now it works.
14 replies
RRunPod
Created by georg on 12/29/2023 in #⚡|serverless
Image is generated successfully, but cant not found for sending back
Then it gets processed the normal way. All workflows except one are sending back the expected image.
14 replies
RRunPod
Created by georg on 12/29/2023 in #⚡|serverless
Image is generated successfully, but cant not found for sending back
Yes i mounted it to a runpod volume, but oddly, i can verify with the handler that everything works pretty well, just one worflow throws this error. My structure is like this to choose a workflow and 0,1,2,4 are working, but 3 not. Example.
if event["flow_id"] == 1:
logging.debug(f"Flow 1")
logger.info(f"Flow 1")
prompt = wrap_json('/workflows/group.json')

if event["flow_id"] == 2:
logging.debug(f"Flow 1")
logger.info(f"Flow 2")
prompt = wrap_json('/workflows/single.json')
if event["flow_id"] == 1:
logging.debug(f"Flow 1")
logger.info(f"Flow 1")
prompt = wrap_json('/workflows/group.json')

if event["flow_id"] == 2:
logging.debug(f"Flow 1")
logger.info(f"Flow 2")
prompt = wrap_json('/workflows/single.json')
14 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
Thank you very much for your advice, i will try!
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
so that should be nothing wrong with the handler there?
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
I can use my worker and it logs correctly within the request tab from runpod, but when i post the exact same payload with a script i get no logging. in the end, i get the same response.
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
Update: When i use the Requests Option in runpod and put my payload in there, i get correct logging from my worker, if i use a script and call the api from there, no logging happen.
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
But still not writing to the file, and the short messages are not suitable for debugging.
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
Update: i restarted, and now the shorter Messages appear in the logs.
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
I get the correct logging with this:
if __name__ == '__main__':
wait_for_service(url=f'{BASE_URI}/system_stats')
logger.info('ComfyUI API is ready')
logger.info('Starting RunPod Serverless...')
runpod.serverless.start(
{
'handler': handler
}
)
if __name__ == '__main__':
wait_for_service(url=f'{BASE_URI}/system_stats')
logger.info('ComfyUI API is ready')
logger.info('Starting RunPod Serverless...')
runpod.serverless.start(
{
'handler': handler
}
)
but in my handler function, i get nothing. also i tried to use the logging library to write to a file
logging.basicConfig(filename='/workspace/logs/custom.log', encoding='utf-8', level=logging.DEBUG)
logging.debug(f"Input: \n {event}")
logging.basicConfig(filename='/workspace/logs/custom.log', encoding='utf-8', level=logging.DEBUG)
logging.debug(f"Input: \n {event}")
it also not writing to this file.
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
I just get the "Started." Message.
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Custom Handler Error Logging
Ok, there are also no logs there. What is too verbosely? i just do some stuff like:
logger.info("Flow 2")
logger.info("Flow 2")
19 replies
RRunPod
Created by georg on 12/28/2023 in #⚡|serverless
Runpod Custom API request and rp_handler.py
ok. thank you very much!
7 replies