12/6/2023 0 Comments Branch operator airflow![]() Whichever way of checking it works, is fine. datetime import DateTime 56 57 58 def is_venv_installed () -> bool : 59 """ 60 Check if the virtualenv package is installed via checking if it is on the path or installed as package. python_virtualenv import prepare_virtualenv, write_python_script 53 54 if TYPE_CHECKING : 55 from pendulum. process_utils import execute_in_subprocess 52 from airflow. operator_helpers import KeywordParameters 51 from airflow. context import Context, context_copy_partial, context_merge 50 from airflow. taskinstance import _CURRENT_CONTEXT 49 from airflow. skipmixin import SkipMixin 48 from airflow. baseoperator import BaseOperator 47 from airflow. exceptions import ( 40 AirflowConfigException, 41 AirflowException, 42 AirflowSkipException, 43 DeserializingResultError, 44 RemovedInAirflow3Warning, 45 ) 46 from airflow. abc import Container 32 from pathlib import Path 33 from tempfile import TemporaryDirectory 34 from textwrap import dedent 35 from typing import TYPE_CHECKING, Any, Callable, Collection, Iterable, Mapping, Sequence, cast 36 37 import dill 38 39 from airflow. 18 from _future_ import annotations 19 20 import importlib 21 import inspect 22 import logging 23 import os 24 import pickle 25 import shutil 26 import subprocess 27 import sys 28 import types 29 import warnings 30 from abc import ABCMeta, abstractmethod 31 from collections. See the License for the 16 # specific language governing permissions and limitations 17 # under the License. You may obtain a copy of the License at 9 # 10 # 11 # 12 # Unless required by applicable law or agreed to in writing, 13 # software distributed under the License is distributed on an 14 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 # KIND, either express or implied. The ASF licenses this file 6 # to you under the Apache License, Version 2.0 (the 7 # "License") you may not use this file except in compliance 8 # with the License. ![]() See the NOTICE file 4 # distributed with this work for additional information 5 # regarding copyright ownership. As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers.Īlternatively you can here view or download the uninterpreted source code file.įor more information about "python.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.7.0_vs_2.7.1.ġ # 2 # Licensed to the Apache Software Foundation (ASF) under one 3 # or more contributor license agreements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |