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.2.tar.gz (35.7 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.2-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file statefun-tasks-1.2.2.tar.gz.

File metadata

  • Download URL: statefun-tasks-1.2.2.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for statefun-tasks-1.2.2.tar.gz
Algorithm Hash digest
SHA256 7a24985408703923ab091e91cbd4f12e24c7ff9b26560348131426b9e56e8cd3
MD5 6d88ab394163ec944c354253383f9c21
BLAKE2b-256 b5c02f719880c0fead4539f7378930d349a344f0e51bb131238c0da924d0c743

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for statefun_tasks-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a214e7bb010d7d0f6b06abc660e557f36b1610e924a5cacfbe85a683f8c2342
MD5 cd5ab07fb917823d0c29285e621adafb
BLAKE2b-256 e908d6144bea7459f5b4a4802e67ec599dea7ad2fe908134c0ab085df601ff8b

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