for python versions
brew install pyenv
# e.g. pyenv install 3.12
- /.zshrc setup
Have you ever wondered how const
works internally in C++? This article demystifies the behavior of const
by exploring its internal workings in different scenarios: compile-time vs. runtime and stack vs. heap. We'll examine each case with simple code examples and concise explanations.
const
variables.When using the with DAG(...)
statement in Airflow, a DAG context is created. This article explains why this context affects tasks like t1
and t2
even if the DAG is not explicitly assigned to them.
Consider the following code defining tasks within a DAG:
with DAG(
"tutorial",
default_args={...},
Airflow의 trigger 개념을 올바르게 반영하여, scheduler, worker, task 등이 어떻게 상호작용하는지 설명해보자면
sequenceDiagram
participant S as Scheduler
participant W as Worker
{ | |
"type": "excalidraw", | |
"version": 2, | |
"source": "https://excalidraw.com", | |
"elements": [ | |
{ | |
"id": "4rHbgk7ycp1eYGRpJRBPy", | |
"type": "image", | |
"x": -169.90679066596726, |
def load_project(directory):
...중략...
python_env = yaml_obj.get(env_type.PYTHON)
if python_env:
python_env_path = os.path.join(directory, python_env)
if not os.path.exists(python_env_path):