AshutoshSrivastavaDev commented on issue #50815:
URL: https://github.com/apache/airflow/issues/50815#issuecomment-2897307656

   we create the dags dynamically using this code 
   
   ` def create_dag(self, json):
           dag_id = json['dag_args']['dag_id']
           timetable = CronTriggerTimetable(json['dag_args']['timetable'], 
timezone="Asia/Kolkata")
           tags = json['dag_args']['tags']
           retries = json['dag_args']['retries']
           max_active_runs = json['dag_args']['concurrency']
           max_active_tasks = MAX_ACTIVE_TASKS
           default_args = {
               'depends_on_past': False,
               'email': ['[email protected]'],
               'email_on_failure': False,
               'email_on_retry': False,
               'retries': retries,
               'retry_exponential_backoff': True,
               'retry_delay': timedelta(seconds=10),
               'max_retry_delay': timedelta(minutes=2),
           }
           start_date = get_date(json['dag_args'].get('start_date'))
           end_date = get_date(json['dag_args'].get('end_date'))
           self.dag = DAG(dag_id=dag_id, start_date=start_date, 
end_date=end_date, default_args=default_args,
                          timetable=timetable, max_active_runs=max_active_runs, 
max_active_tasks=max_active_tasks,
                          tags=tags, catchup=False,
                          
on_failure_callback=delete_slack_thread_id_and_stop_cluster,
                          
on_success_callback=delete_slack_thread_id_and_stop_cluster)
           return self.dag`
   
   earlier the input for tags was 'PACMAN' now it is 'pacman'


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to