Josh Dunkley
07/24/2025, 6:52 PMnon-zero status code -6.Marvin
07/24/2025, 6:52 PMMarvin
07/24/2025, 6:53 PMpython
from prefect.logging import get_run_logger
logger = get_run_logger()
2. Check the Prefect UI for any additional error information or logs
3. Verify your Prefect server connection and authentication are working correctly
Could you please provide more details about your setup and when this error occurs? This would help me give you a more specific and helpful answer.Josh Dunkley
07/24/2025, 6:55 PMMarvin
07/24/2025, 6:55 PMMarvin
07/24/2025, 6:55 PMdockerfile
ENV PREFECT_API_URL=<http://host.docker.internal:4200/api>
ENV PYTHONUNBUFFERED=1
2. Try wrapping your subflow execution in a try-except block to get more detailed error information:
python
from prefect import flow, get_run_logger
@flow
async def your_subflow():
try:
# Your subflow code here
result = await ...
return result
except Exception as e:
logger = get_run_logger()
logger.error(f"Subflow error: {str(e)}")
raise
3. Make sure your Docker container has proper networking configured to communicate with the Prefect server/API.
4. If you're using a custom task runner, try using the default one first to isolate the issue:
python
@flow(task_runner=SequentialTaskRunner())
async def your_flow():
# Flow code here
5. Check that your Docker container has sufficient memory and CPU resources allocated.
Could you please provide:
1. How are you running your Docker container? (docker run command or compose file)
2. Are you seeing any logs in the container before the error?
3. What task runner are you using (if any)?
This will help me provide a more specific solution to your issue. Also, since you're using Prefect 3.3.3, make sure all your dependencies are compatible with this version.
The status code -6 is quite unusual and often indicates a lower-level system or container issue rather than a Prefect-specific problem. It could be related to:
- Resource constraints
- Network connectivity issues
- Container configuration problems
- Permission issues
Let me know the additional details requested above, and I can provide more targeted solutions.