Skip to main content

Tasks API for Stateful Functions on Flink

Project description

Flink Tasks

Tasks API for Stateful Functions on Flink

What is it?

A lightweight API that borrows concepts from Celery to allow Python developers to run task based workflows on Apache Flink Stateful Functions. Workflows are composed of Tasks which accept parameters and can be chained together as continuations into a Pipeline. The Pipeline becomes the Flink state.

@tasks.bind()
def greeting_workflow(first_name, last_name):
    return say_hello.send(first_name, last_name).continue_with(say_goodbye)


@tasks.bind()
def say_hello(first_name, last_name):
    return f'Hello {first_name} {last_name}'


@tasks.bind()
def say_goodbye(greeting):
    return f'{greeting}.  So now I will say goodbye'

Try the demo.

Additional documentation can be found here.

The pipeline function can be downloaded here.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statefun_tasks-1.2.3.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statefun_tasks-1.2.3-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file statefun_tasks-1.2.3.tar.gz.

File metadata

  • Download URL: statefun_tasks-1.2.3.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for statefun_tasks-1.2.3.tar.gz
Algorithm Hash digest
SHA256 fd63e5ddb351fbb3f5b7d1f7524e3abf6c02a1140a5e1212020148a3d551e554
MD5 fd3c398f062c881a1222908416c2d5dc
BLAKE2b-256 693734aa9352e9c78474f7b0c6ebc50af8f32f6987682b0f7b5086b5666e60cf

See more details on using hashes here.

File details

Details for the file statefun_tasks-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: statefun_tasks-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for statefun_tasks-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 70058e48877b66b40ad9765500c6898264ee549571871e0af9bb9d50b621e467
MD5 812fc497bd27ec0167de5e8d36c617ba
BLAKE2b-256 e5c16234ef1180115d59461764d9542f4b917075364686f4885e80b15103f939

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page