Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for Apache Airflow™
  • Getting started
    • All guides
      • Information about existing clusters
      • Creating a cluster
      • Updating a cluster
      • Stopping and starting a cluster
      • Maintenance
      • Deleting a cluster
    • Working with Apache Airflow™ interfaces
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Release notes
  • FAQ

In this article:

  • Getting a list of maintenances
  • Getting cluster maintenance logs
  • Moving scheduled maintenance
  • Performing scheduled maintenance immediately
  • Configuring a maintenance window
  1. Step-by-step guides
  2. Clusters
  3. Maintenance

Yandex Managed Service for Apache Airflow™ cluster maintenance

Written by
Yandex Cloud
Updated at September 8, 2025
  • Getting a list of maintenances
  • Getting cluster maintenance logs
  • Moving scheduled maintenance
  • Performing scheduled maintenance immediately
  • Configuring a maintenance window

Managed Service for Apache Airflow™ cluster maintenance can be managed.

Getting a list of maintenancesGetting a list of maintenances

Management console
  1. Navigate to the folder dashboard and select Managed Service for Apache Airflow™.
  2. Click the name of your cluster and open the Technical maintenance tab.

To view maintenances with a particular status, click Status above the list of maintenances and select the status of interest from the drop-down menu. To find a specific maintenance, enter its ID or task name in the field above the list of maintenances.

Getting cluster maintenance logsGetting cluster maintenance logs

Management console
  1. Navigate to the folder dashboard and select Managed Service for Apache Airflow™.
  2. Click the name of your cluster and open the Technical maintenance tab.
  3. Click the maintenance ID you need.
  4. Click Task logs.

Moving scheduled maintenanceMoving scheduled maintenance

Maintenance sessions with the Planned status are scheduled for the date and time specified in the Start date column. You can move them to a new date and time if needed.

To move a maintenance to a new date and time:

Management console
  1. Navigate to the folder dashboard and select Managed Service for Apache Airflow™.

  2. Click the name of your cluster and open the Technical maintenance tab.

  3. Click next to the maintenance with the Planned status.

  4. In the drop-down menu, select Postpone.

  5. In the window that opens:

    • To move a maintenance forward to the next maintenance window, click Next window and then Reschedule.
    • To move a maintenance forward or backward to a specific UTC date and time, click Choose date (UTC), then select a new date and time and click Reschedule.

Performing scheduled maintenance immediatelyPerforming scheduled maintenance immediately

If you need to, you can perform a maintenance with the Planned status immediately without waiting for the time specified in the Start date column.

To perform a scheduled cluster maintenance immediately:

Management console
  1. Navigate to the folder dashboard and select Managed Service for Apache Airflow™.
  2. Click the name of your cluster and open the Technical maintenance tab.
  3. Click next to the maintenance.
  4. In the drop-down menu, select Carry out now.

Configuring a maintenance windowConfiguring a maintenance window

By default, maintenance can be scheduled to any time slot. You can select a particular day of week and hour for the maintenance. For example, you can specify the time when the cluster is least loaded.

Warning

By selecting a new maintenance interval you will automatically cancel scheduled maintenance unless it falls within the new interval.

Management console
CLI
Terraform
REST API
gRPC API
  1. Navigate to the folder dashboard and select Managed Service for Apache Airflow™.

  2. Click the name of your cluster and open the Technical maintenance tab.

  3. Click Configure the maintenance window.

  4. In the window that opens:

    • To allow maintenance at any time, select arbitrary (default).
    • To allow maintenance once a week at a particular time, select by schedule and specify the day of week and hour in UTC.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. View the description of the CLI command for updating the maintenance window:

    yc managed-airflow cluster update --help
    
  2. Run this command:

    yc managed-airflow cluster update <cluster_name_or_ID> \
        --maintenance-window type=<maintenance_type>,`
                            `day=<day_of_week>,`
                            `hour=<hour>
    

    Where type is the maintenance type:

    • anytime: At any time (default).
    • weekly: On a schedule. For this value, also specify the following:
      • day: Day of week, i.e., MON, TUE, WED, THU, FRI, SAT, or SUN.
      • hour: Hour of day (UTC), from 1 to 24.

    You can get the cluster name and ID with the list of clusters in the folder.

  1. Open the current Terraform configuration file that defines your infrastructure.

    For more information about creating this file, see this guide.

  2. To set up a maintenance window, add the maintenance_window section to the cluster description:

    resource "yandex_airflow_cluster" "<cluster_name>" {
      ...
      maintenance_window = {
        type = "<maintenance_type>"
        day  = "<day_of_week>"
        hour = <hour>
      }
      ...
    }
    

    Where:

    • type: Maintenance type. The possible values include:
      • ANYTIME: Anytime
      • WEEKLY: On a schedule
    • day: Day of week for the WEEKLY type, i.e., MON, TUE, WED, THU, FRI, SAT, or SUN.
    • hour: UTC hour for the WEEKLY type, from 1 to 24.
  3. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Confirm updating the resources.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

  1. Get an IAM token for API authentication and save it as an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Use the Cluster.Update method and send the following request, e.g., via cURL:

    Warning

    The API method will assign default values to all the parameters of the object you are modifying unless you explicitly provide them in your request. To avoid this, list the settings you want to change in the updateMask parameter as a single comma-separated string.

    curl \
      --request PATCH \
      --header "Authorization: Bearer $IAM_TOKEN" \
      --header "Content-Type: application/json" \
      --url 'https://airflow.api.cloud.yandex.net/managed-airflow/v1/clusters/<cluster_ID>' \
      --data '{
                "updateMask": "maintenanceWindow",
                "maintenanceWindow": {
                  "weeklyMaintenanceWindow": {
                    "day": "<day_of_week>",
                    "hour": "<hour>"
                  }
                }
              }'
    

    Where:

    • updateMask: List of parameters to update as a single string, separated by commas.

      Only one parameter is provided in this case.

    • maintenanceWindow: Maintenance window settings (including for disabled clusters). In maintenanceWindow, provide one of the two parameters:

      • anytime: Maintenance can take place at any time.

      • weeklyMaintenanceWindow: Maintenance takes place once a week at the specified time:

        • day: Day of week in DDD format: MON, TUE, WED, THU, FRI, SAT, or SUN.
        • hour: Time of day (UTC) in HH format, from 1 to 24.

    You can get the cluster ID with the list of clusters in the folder.

  3. View the server response to make sure your request was successful.

  1. Get an IAM token for API authentication and save it as an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume the repository contents are stored in the ~/cloudapi/ directory.

  3. Use the ClusterService.Update call and send the following request, e.g., via gRPCurl:

    Warning

    The API method will assign default values to all the parameters of the object you are modifying unless you explicitly provide them in your request. To avoid this, list the settings you want to change in the update_mask parameter as an array of paths[] strings.

    Format for listing settings
    "update_mask": {
        "paths": [
            "<setting_1>",
            "<setting_2>",
            ...
            "<setting_N>"
        ]
    }
    
    grpcurl \
      -format json \
      -import-path ~/cloudapi/ \
      -import-path ~/cloudapi/third_party/googleapis/ \
      -proto ~/cloudapi/yandex/cloud/airflow/v1/cluster_service.proto \
      -rpc-header "Authorization: Bearer $IAM_TOKEN" \
      -d '{
            "cluster_id": "<cluster_ID>",
            "update_mask": {
              "paths": ["maintenance_window"]
            },
            "maintenance_window": {
              "weekly_maintenance_window": {
                "day": "<day_of_week>",
                "hour": "<hour>"
              }
            }
          }' \
      airflow.api.cloud.yandex.net:443 \
      yandex.cloud.airflow.v1.ClusterService.Update
    

    Where:

    • update_mask: List of parameters to update as an array of paths[] strings.

      Only one parameter is provided in this case.

    • maintenance_window: Maintenance window settings (including for disabled clusters). In maintenance_window, provide one of the two parameters:

      • anytime: Maintenance can take place at any time.

      • weekly_maintenance_window: Maintenance takes place once a week at the specified time:

        • day: Day of week in DDD format: MON, TUE, WED, THU, FRI, SAT, or SUN.
        • hour: Time of day (UTC) in HH format, from 1 to 24.

    You can get the cluster ID with the list of clusters in the folder.

  4. View the server response to make sure your request was successful.

Was the article helpful?

Previous
Stopping and starting a cluster
Next
Deleting a cluster
© 2025 Direct Cursus Technology L.L.C.