Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- kubectl
- 임업후계자
- OpenSearch
- 외국납부세액공제
- 금융소득
- boto3
- Kubernetes
- command
- 경매
- serverless
- 양도소득세
- route53
- Filter
- 클러스터
- 세금계산서
- 인덱싱
- 농지연금
- Resolver
- 성능개선
- python
- 산지연금
- S3
- 공매
- 정책자금
- 이자
- 신탁공매
- 산지
- AWS
- 매입불공제
- lambda
Archives
- Today
- Total
진지한 개발자
CustomOperator에서 jinja 템블릿 값 사용하려면 본문
728x90
- template_fields 에 정의하면 됨
- baseoperator
# venv > Lib > site-packages > airflow > models > baseoperator.py > Jupyter > BaseOperator
class BaseOperator ...
def render_template_fields(
self,
context: Context,
jinja_env: Optional["jinja2.Environment"] = None,
) -> Optional["BaseOperator"]:
"""Template all attributes listed in template_fields.
This mutates the attributes in-place and is irreversible.
:param context: Dict with values to apply on content
:param jinja_env: Jinja environment
"""
if not jinja_env:
jinja_env = self.get_template_env()
self._do_render_template_fields(self, self.template_fields, context, jinja_env, set())
return selftem
728x90
'IT > Airflow' 카테고리의 다른 글
Spark vs Sqoop (0) | 2025.02.18 |
---|---|
Date 변환 (0) | 2023.05.02 |