Update a Deployment KEDA config with the APC API

The examples on this page show common ways to use the APC API — they’re not a complete API reference. For the full, interactive API documentation for your installation, including every available query, mutation, and type, go to https://houston.<your-base-domain>/v1, and click on the Docs tab. See Develop and test APC API queries for more on using the built-in GraphQL explorer.

Kubernetes Event-driven Autoscaling (KEDA) scales Celery workers based on task queue depth. Enable KEDA for a Deployment using the updateDeploymentKedaConfig mutation:

1mutation {
2 updateDeploymentKedaConfig(
3 deploymentUuid: "<deployment-uuid>"
4 state: true
5 ) {
6 id
7 label
8 }
9}

For sizing guidance and other Airflow resource settings, see Scale Airflow resources.