You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prefect docker agent is using default parameters to create an instance of docker.APIClient. This makes it impossible to customize the docker client. Things such as to increase the timeout of docker client cannot be done.
We should have a way to pass custom parameters to when creating an instance of docker.APIClient.
Either as a dictionary or as a json config file
Example
When the somehow get overloaded, docker daemon failed to create a container within 60 seconds, docker.APIClient will then return a timeout error similar to docker/compose#3927. In my case increase the timeout from 60 to 120 seconds would mitigate this problem.
The text was updated successfully, but these errors were encountered:
Would exposing only the timeout be sufficient. Exposing the full kwargs options through the CLI is tricky to support in an ergonomic way, exposing individual parameters is much simpler.
Current behavior
prefect docker agent is using default parameters to create an instance of docker.APIClient. This makes it impossible to customize the docker client. Things such as to increase the timeout of docker client cannot be done.
https://github.com/PrefectHQ/prefect/blob/master/src/prefect/agent/docker/agent.py#L186
Proposed behavior
We should have a way to pass custom parameters to when creating an instance of docker.APIClient.
Either as a dictionary or as a json config file
Example
When the somehow get overloaded, docker daemon failed to create a container within 60 seconds, docker.APIClient will then return a timeout error similar to docker/compose#3927. In my case increase the timeout from 60 to 120 seconds would mitigate this problem.
The text was updated successfully, but these errors were encountered: