Registry / workflow / apache-airflow-providers-openfaas

apache-airflow-providers-openfaas

JSON →
library3.9.5pypypi✓ verified 85d ago

The Apache Airflow Provider for OpenFaaS enables integration with OpenFaaS function-as-a-service platform. Version 3.9.4 supports Apache Airflow >=2.10.0 and Python >=3.10. It provides hooks, operators, and sensors to invoke and manage OpenFaaS functions. Release cadence follows Airflow provider updates.

pip install apache-airflow-providers-openfaas
INSTALL
IMPORT
SIG · APACHE-AIRFLOW-PRO
A
apache-airflow-providers-openfaas
workflowpythonv3.9.5
Install
23.1s avg
Import
5028ms
Disk
250MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 5.243s · 250.7MB
glibc
py 3.103.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
Debug
Known issues
breakingProvider versioning changed: versions 2.x and earlier were part of Airflow extras. As of 3.0+, the provider is a separate package and must be installed explicitly. Dependencies on OpenFaaS client library (faas-client) may have breaking changes.
fix
Install with pip install apache-airflow-providers-openfaas and update imports to use airflow.providers.openfaas path.
affects: >=3.0.0
gotchaOpenFaasHook requires explicit 'gateway_url' parameter or environment variable OPENFAAS_GATEWAY_URL. If not set, the hook may default to localhost, causing connection issues.
fix
Set the gateway_url argument in operators/hook or set OPENFAAS_GATEWAY_URL environment variable.
affects: All
deprecatedThe use of Airflow extras (e.g., pip install apache-airflow[openfaas]) is deprecated for providers. Users should install the provider package directly.
fix
Use pip install apache-airflow-providers-openfaas instead.
affects: >=3.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.openfaas'
Provider package not installed or installed incorrectly (missing dependencies).
fix
Run: pip install apache-airflow-providers-openfaas
AttributeError: module 'airflow.hooks' has no attribute 'openfaas_hook'
Using old import path from Airflow 1.x.
fix
Change 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.
fix
Verify 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
Agent activity
53 hits · last 30 days
node
50
OpenAI (training)
1
Resources