48 lines
1.2 KiB
Python
48 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright © 2024 rl
|
|
#
|
|
# Distributed under terms of the MIT license.
|
|
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright © 2024 rl
|
|
#
|
|
# Distributed under terms of the MIT license.
|
|
|
|
"""
|
|
DEPRECATED: Maintenance DAG for managing the lifecycle of ytdlp-ops accounts.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
from airflow.models.dag import DAG
|
|
from airflow.utils.dates import days_ago
|
|
|
|
DEFAULT_ARGS = {
|
|
'owner': 'airflow',
|
|
'retries': 0,
|
|
'queue': 'queue-mgmt',
|
|
}
|
|
|
|
with DAG(
|
|
dag_id='ytdlp_ops_account_maintenance',
|
|
default_args=DEFAULT_ARGS,
|
|
schedule=None, # Disabled
|
|
start_date=days_ago(1),
|
|
catchup=False,
|
|
is_paused_upon_creation=True,
|
|
tags=['ytdlp', 'maintenance', 'deprecated'],
|
|
doc_md="""
|
|
### DEPRECATED: YT-DLP Account Maintenance
|
|
|
|
This DAG is **DEPRECATED** and should not be used. Its functionality has been replaced
|
|
by a standalone, continuously running `policy-enforcer` service.
|
|
|
|
To run the new enforcer, use the following command on a management node:
|
|
`bin/ytops-client policy-enforcer --policy policies/8_unified_simulation_enforcer.yaml --live`
|
|
|
|
This DAG is paused by default and will be removed in a future version.
|
|
""",
|
|
) as dag:
|
|
pass
|