Revert "add spota_antrean_daily dag (spota api -> antrean penetapan pembimbing di db dashboard)"
This reverts commit f7bc1e31f4.
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
"""
|
||||
DAG harian: catat antrean penetapan pembimbing SPOTA ke DB dashboard akreditasi
|
||||
(dasar "median masa tunggu pembimbing" di Executive > Monitoring SPOTA).
|
||||
|
||||
Task catat_antrean_pembimbing : tarik getListTugasAkhir?withoutKep dari API legacy SPOTA,
|
||||
catat topik yang disetujui Ketua KK tapi pembimbing 1/2 belum
|
||||
lengkap, plus hari pertama pembimbing terlihat terisi, ke tabel
|
||||
spota_antrean_pembimbing (dibuat otomatis bila belum ada).
|
||||
|
||||
Environment yang wajib di-set di Coolify (service airflow-scheduler):
|
||||
DB_HOST, DB_PORT, DB_USER, DB_PASS, DB_NAME -> MySQL dashboard (Coolify)
|
||||
SPOTA_API_SECRET -> secret API legacy SPOTA
|
||||
Opsional: SPOTA_API_URL (default https://spota.untan.ac.id/steven/API).
|
||||
|
||||
Jadwal 18:00 UTC = 01:00 WIB. Ketelitian masa tunggu = 1 hari, jadi jangan dijarangkan.
|
||||
"""
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from airflow import DAG
|
||||
from airflow.operators.python import PythonOperator
|
||||
|
||||
# Import fungsi dari folder scripts
|
||||
from scripts.spota_antrean import run
|
||||
|
||||
with DAG(
|
||||
dag_id="spota_antrean_daily",
|
||||
description="Catat antrean penetapan pembimbing SPOTA (topik disetujui KK, pembimbing belum lengkap)",
|
||||
start_date=datetime(2026, 10, 1),
|
||||
schedule_interval="0 18 * * *",
|
||||
catchup=False,
|
||||
max_active_runs=1,
|
||||
default_args={
|
||||
"owner": "dashboard-informatika",
|
||||
"retries": 3,
|
||||
"retry_delay": timedelta(minutes=20),
|
||||
},
|
||||
tags=["spota", "tugas-akhir", "dashboard"],
|
||||
) as dag:
|
||||
|
||||
PythonOperator(
|
||||
task_id="catat_antrean_pembimbing",
|
||||
python_callable=run,
|
||||
)
|
||||
Reference in New Issue
Block a user