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.3rc0.tar.gz (59.9 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.3rc0-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file statefun_tasks-3.4.3rc0.tar.gz.

File metadata

  • Download URL: statefun_tasks-3.4.3rc0.tar.gz
  • Upload date:
  • Size: 59.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for statefun_tasks-3.4.3rc0.tar.gz
Algorithm Hash digest
SHA256 00d18a157760152feb2559e790dc07a80376cdac9350dd01c70f7e1bdbe428d2
MD5 0fd1bee3fb049729947ccc229ed8a13d
BLAKE2b-256 f2cfb209d556ae11f59c2dc5127b7521b80d8693fe2bd7e5464a825aff4a7b32

See more details on using hashes here.

File details

Details for the file statefun_tasks-3.4.3rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for statefun_tasks-3.4.3rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c4ce24b731d78261ec99b5873781d52a87f4ba122e90f720bde2e0680906de2
MD5 eaf2e774013b8e9fa0952fe79b5c366d
BLAKE2b-256 dff0114e3fd830b35ca96921d5dd31cf91a08336b804ccb86d43ff28b8d91012

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