मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)22k · #10343

managed-airflow-dag-troubleshooting

यह क्या करती है

यह स्किल Managed Service for Apache Airflow पर फ़ेल हुए Airflow रन की जाँच करती है। यह उन लोगों के लिए है जिनके शेड्यूल किए गए workflow टूट जाते हैं और जिन्हें साफ़ कारण चाहिए।

कब इस्तेमाल करें

  • ✓जब Managed Airflow में कोई DAG रन या टास्क इंस्टेंस फ़ेल हो गया हो।
  • ✓जब आपको traceback या API त्रुटि ढूँढने के लिए Airflow टास्क लॉग पढ़ने हों।
  • ✓जब कोई टास्क बार-बार टाइम आउट हो रहा हो, जैसे AirflowTaskTimeout त्रुटि के साथ।

Skill का लिंक

https://github.com/google/skills/blob/main/skills/cloud/managed-airflow-dag-troubleshooting/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/google/skills/blob/main/skills/cloud/managed-airflow-dag-troubleshooting/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरा रात वाला Airflow DAG load टास्क पर फ़ेल हो गया। लॉग पढ़कर बताइए कि गड़बड़ी कहाँ हुई।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह gcloud logging से टास्क लॉग और storage से DAG कोड लाती है। फिर traceback और API error codes जैसे पैटर्न ढूँढती है। इसकी सलाह सिर्फ़ उन्हीं बातों पर आधारित होती है जो यह खोजती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Managed Service for Apache Airflow (formerly Cloud Composer) DAG troubleshooting guide

This skill provides instructions for troubleshooting Managed Airflow DAGs (DAG runs and task instances), utilizing gcloud composer, gcloud logging and gcloud storage commands to fetch remote logs and code.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:managed-airflow-dag-troubleshooting)" and append agent-skills/1.0 (skill:managed-airflow-dag-troubleshooting) to User-Agent headers.

General rules

  1. Provide suggestions on how to troubleshoot the failed jobs. Provide only the steps that the user can actually take. Ground all troubleshooting advice in direct findings.

  2. When troubleshooting a failure, follow the following practices to always provide a deterministic diagnosis:

    • Fetch relevant logs: Always fetch the logs for a task under investigation using gcloud logging read; check the logs for specific error patterns: Python tracebacks, API error codes (e.g., 400, 403, 404, 500), or Airflow signals (e.g., AirflowTaskTimeout).

    • Fetch task metadata: When troubleshooting a task, fetch the task state and metadata (execution state, try number, timestamps, and execution details) using:

      gcloud composer environments run {env_name} \
          --location {location} \
          tasks states-for-dag-run -- -d {dag_id} -r {run_id}
      

      or for an individual task instance:

      gcloud composer environments run {env_name} \
          --location {location} \
          tasks state -- {dag_id} {task_id} {execution_date}
      
    • Retrieve and compare DAG source code: Download the remote DAG source code using gcloud storage cp gs://{bucket_name}/dags/{dag_file}.py . (find the environment bucket via gcloud composer environments describe {env_name} --location {location} --format="value(config.dagGcsPrefix)"). Compare the parameters in the code (e.g., table IDs, disk sizes, URI paths) against the error messages found in the task logs.

    • Explain code mistakes and potential fixes: Explain mistakes in the code (if any are actually visible); suggest potential fixes (if they are very likely to be meaningful); discuss source code availability if needed - if some source code is unavailable (e.g. imported from a file other than the main source code file), mention this (you can mention the package name) - in such a case take into account most likely trigger rules if they are unknown.

    • Check for environment-level errors: Query Cloud Logging with gcloud logging read to see if there are high-level environment issues or known platform errors correlating with the failure (see Known issues below). You MUST return ALL found issues.

    • Identify failing tasks in a DAG run: When troubleshooting a failed DAG run, mention the task that caused a failure (use tasks states-for-dag-run or Cloud Logging to identify failed tasks). Provide a task instance name. If many tasks failed, mention which task was critical (mandatory for successful DAG run execution - look into task dependencies and trigger rules) and focus on this one.

    • Verify service configurations in code: If logs suggest an issue with a specific service (e.g., BigQuery, Dataform, Compute Engine), use the log details to verify the configuration in the DAG source code.

    • Correlate logs with code: E.g., if BigQuery returns a 404, verify the dataset ID or table ID in the DAG source code matches reality.

    • Prioritize known platform issues: Check against Known issues below. If Cloud Logging queries return matching platform error signals, prioritize that diagnosis.

  3. Summarize with Evidence (Deterministic Response): Your response must be specific. Avoid general advice like 'check your permissions.' or 'check the logs.' Instead, say 'The service account is missing X permission

अक्सर पूछे जाने वाले सवाल

क्या यह environment की समग्र परफ़ॉर्मेंस जाँचती है?

नहीं। परफ़ॉर्मेंस की सिफ़ारिशें एक अलग स्किल से होती हैं।

क्या इसे लॉग तक पहुँच चाहिए?

हाँ। लॉग और DAG कोड पढ़ने के लिए यह gcloud logging और gcloud storage इस्तेमाल करती है।

क्या यह कारण अंदाज़े से बताती है?

नहीं। यह कहती है कि इसकी सलाह लॉग और कोड में सीधे मिली बातों पर आधारित है।

जानकारी

लेखक का मूल विवरण

Provides guidance for troubleshooting Apache Airflow DAGs (failed DAG runs and task instances) in Managed Service for Apache Airflow (MSAA; formerly Cloud Composer). Use when figuring out reasons for DAG run or task instance failures. Don't use when looking for overall recommendations for Managed Airflow environment performance.

repo: google/skills

लोकप्रियता

GitHub स्टार
22k
रैंकिंग में स्थान
#10343
लाइसेंस
Apache-2.0
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

finding-google-skills

22k

आपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।

AI और एजेंटएजेंट

gcloud

22k

यह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

google-cloud-recipe-auth

22k

आपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।

कोडिंगसिक्योरिटी

google-cloud-recipe-onboarding

22k

एक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills