Server

class Server(comm: InetSocketAddress, logs: InetSocketAddress)

Connects this JVM process to the Airflow coordinator and dispatches task execution requests to the registered Bundle.

The typical entry point is:

public static void main(String[] args) {
Server.create(args).serve(new MyBundleBuilder().build());
}

The process exits when the coordinator closes the connection (normally after one task-instance execution).

Constructors

Link copied to clipboard
constructor(comm: InetSocketAddress, logs: InetSocketAddress)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serve(bundle: Bundle)

Blocking entry point: connects to the coordinator and serves task-execution requests from the given bundle.

Link copied to clipboard
suspend fun serveAsync(bundle: Bundle): Job

Suspending entry point: connects to the coordinator and serves task-execution requests from the given bundle.