Pedro Machado
04/20/2021, 2:45 PMCreateContainer
, StartContainer
, etc.).
However, it seems that the logs would need to be retrieved after the container finishes running with GetContainerLogs
. Is this correct? If so, this is less than ideal for our use case given that these are long-running processes we'd want to see the logs in real-time.
So far, I've thought about a couple of alternatives:
1. Modify the Docker Tasks to use the logs
method with stream=True
(I haven't tested this yet, but the docs suggest this could work)
2. Add prefect to their docker image and create a flow that runs inside of the image
Do you see another option? What would you recommend? Thanks!nicholas
StartContainer
task in your own and call both the StartContainer
task and the GetContainerLogs
method on some interval loop until your scripts inside the container have finished; that way you can batch the logs and store them however you need to without having to stream them.nicholas
Pedro Machado
04/20/2021, 2:54 PM