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.4.tar.gz (59.6 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.4-py3-none-any.whl (67.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: statefun_tasks-3.4.4.tar.gz
  • Upload date:
  • Size: 59.6 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.4.tar.gz
Algorithm Hash digest
SHA256 0589072b39a3699cc01d611324bce375a15502bee1ae06837ece04e7c2a9c79d
MD5 43bd504321c3eb6e5aeda5450e936972
BLAKE2b-256 7ee745dc257b6406058a8fe9e3e5f31218a24c403cb7463628859c0ce70010cb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for statefun_tasks-3.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a00e8256a3afc16c0e33d89523edaf7dbfe13a66b32c40c2c68fbb65029f1351
MD5 8945bd993682c6c2ccbec3b1b06ce2f3
BLAKE2b-256 2600b1f25452492b5b73aca4e95eda4922164a955fa6c24c330cdcc091bb7e5c

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