Registry /
workflow / apache-airflow-providers-openfaas
Install & Compatibility
Where this runs
tested against v3.9.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 5.243s · 250.7MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 23.1s · import 4.813s · 248MB
250MB installed
● package 250MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
OpenFaasHook
✓ from airflow.providers.openfaas.hooks.openfaas import OpenFaasHook
✗ from airflow.hooks.openfaas_hook import OpenFaasHook
Old hook module location deprecated in Airflow 2.0
OpenFaasInvokeFunctionOperator
✓ from airflow.providers.openfaas.operators.openfaas import OpenFaasInvokeFunctionOperator
✗ from airflow.operators.openfaas_operator import OpenFaasInvokeFunctionOperator
Operator moved to providers package in Airflow 2.0
OpenFaasFunctionSensor
✓ from airflow.providers.openfaas.sensors.openfaas import OpenFaasFunctionSensor
✗ from airflow.sensors.openfaas_sensor import OpenFaasFunctionSensor
Sensor moved to providers package
Basic DAG invoking an OpenFaaS function. Replace gateway_url and function_name with your deployment details.
from airflow import DAG
from airflow.providers.openfaas.operators.openfaas import OpenFaasInvokeFunctionOperator
from datetime import datetime
with DAG(
dag_id='openfaas_invoke',
start_date=datetime(2023, 1, 1),
schedule_interval=None,
catchup=False,
) as dag:
invoke = OpenFaasInvokeFunctionOperator(
task_id='invoke_function',
function_name='my-function',
payload={"key": "value"},
gateway_url='http://gateway:8080',
)
airflow --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.openfaas'
Provider package not installed or installed incorrectly (missing dependencies).
fixRun: pip install apache-airflow-providers-openfaas
AttributeError: module 'airflow.hooks' has no attribute 'openfaas_hook'
Using old import path from Airflow 1.x.
fixChange import to: from airflow.providers.openfaas.hooks.openfaas import OpenFaasHook
OSError: [Errno 111] Connection refused for gateway_url
OpenFaaS gateway is not running or unreachable at the configured URL.
fixVerify gateway is running: curl http://<gateway_url>/healthz. Ensure network connectivity and correct port.
Upgrade
Version history
3.9.5latest on PyPI · released Jun 7, 2026
Audit
Dependencies
apache-airflowrequiredCore dependency; provider requires Airflow >=2.10.0