Bowrna commented on issue #15974: URL: https://github.com/apache/airflow/issues/15974#issuecomment-1064991960
https://github.com/apache/airflow/blob/e63f6e36d14a8cd2462e80f26fb4809ab8698380/airflow/providers/docker/operators/docker_swarm.py#L93-L113 In docker swarm, we have the option to pass network and placement. The type `placement` is a type of dict and accepts constraint as a parameter. The current code of DockerSwarmOperator looks like having support for network and constraint. Maybe we can improve the documentation for better understanding. ``` placement= Placement(constraints=['node.role == "manager"']) ``` I didn't try the above code, but something in this way is supported to pass constraint If I am missing to understand any part, please explain In DockerOperator, when you mean by constraint, do you mean the resource constraint? If yes, there is support for cpu_shares, mem_limit. If it's something different, could you explain? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
