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-3.4.0.tar.gz (56.3 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-3.4.0-py3-none-any.whl (66.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for statefun_tasks-3.4.0.tar.gz
Algorithm Hash digest
SHA256 9a66ef8e4a18921e4fef31ff66d5d6474d4ebaa8be9f344eb1a3e5bb155b919e
MD5 98e4993f468fc7e78ec7687d2c81ffb2
BLAKE2b-256 28a62d2e021cb8df5c1e5598b6ec32e305a475c483cfe31ad5925a22c94fb185

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statefun_tasks-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 66.0 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-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32ac08d9c9703ae3cbda42f29c5ce7b071bb6ccd7974f74d7a7ed7c633bb4f8a
MD5 5b6faa5b3f495bb3b64516c7177470ce
BLAKE2b-256 e11670c3e990a3a091c6513ebb82453d22d64166563810a94f7c31f8ccdd1771

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