Composer_dags.py script (pause & unpause dags) is taking hours to finish
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
In which file did you encounter the issue?
composer/tools/composer_dags.py
Did you change the file? If so, how?
No change
Describe the issue
I run the script for the environment of 500 dags. It is extremely slow, it takes more than 1-2min to do this for each dag. I has taken almost entire day and not yet finished. Is there a better way to batch those requests and pause multiple dags at once?
This has to be done before the snapshot can be created.
Example logs:
2023-10-25 15:49:30,718 - Executing shell command: CLOUDSDK_API_ENDPOINT_OVERRIDES_COMPOSER=https://composer.googleapis.com/ gcloud composer environments run composer-dev --project=whejna-dataops --location=europe-west3 dags pause -- export_task_reschedule_v1_0
Executing the command: [ airflow dags pause export_task_reschedule_v1_0 ]...
Command has been started. execution_id=3fa888b4-7cf4-4c0e-ab07-c54cccda24ac
Use ctrl-c to interrupt the command
2023-10-25 15:51:07,371 - Dag: export_task_reschedule_v1_0, paused: True
Thanks
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 8.1k
- Forks
- 6.7k
- Merge medio
- 4 d 4 h
- PR fusionados (30 d)
- 8
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de GoogleCloudPlatform/python-docs-samples
-
samples
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
Los mantenedores suelen responder en 1 día
-
samples
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
GoogleCloudPlatform/python-docs-samples#14610 ·
Los mantenedores suelen responder en 1 día
-
samples
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
GoogleCloudPlatform/python-docs-samples#14611 ·
Los mantenedores suelen responder en 1 día
-
samples
GoogleCloudPlatform/python-docs-samples#14117 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
samples
GoogleCloudPlatform/python-docs-samples#14091 · 1 asignado ·
Los mantenedores suelen responder en 1 día