Skip to content

Commit

Permalink
Update Airflow decorators stub to reflect changes in apache#38387
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Mar 22, 2024
1 parent 3153606 commit 1fb57e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airflow/decorators/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class TaskDecoratorCollection:
api_version: str | None = None,
container_name: str | None = None,
cpus: float = 1.0,
docker_url: str = "unix://var/run/docker.sock",
docker_url: str | None = None,
environment: dict[str, str] | None = None,
private_environment: dict[str, str] | None = None,
env_file: str | None = None,
Expand Down Expand Up @@ -383,7 +383,8 @@ class TaskDecoratorCollection:
This value gets multiplied with 1024. See
https://docs.docker.com/engine/reference/run/#cpu-share-constraint
:param docker_url: URL of the host running the docker daemon.
Default is unix://var/run/docker.sock
Default is the value of the ``DOCKER_HOST`` environment variable or unix://var/run/docker.sock
if it is unset.
:param environment: Environment variables to set in the container. (templated)
:param private_environment: Private environment variables to set in the container.
These are not templated, and hidden from the website.
Expand Down

0 comments on commit 1fb57e3

Please sign in to comment.