Tasks API for Stateful Functions on Flink
Reason this release was yanked:
Broken wheel file
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'
Additional documentation can be found 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-0.9.36.tar.gz
(31.5 kB
view hashes)
Built Distribution
Close
Hashes for statefun_tasks-0.9.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a77eab7d03f8ec1743a6d31a6a4e423f02e97550c1663e03b7e1943f86a11026 |
|
MD5 | ff0909e9746ff354f2a5fc33aaf5756f |
|
BLAKE2b-256 | eb0965e789d7150044741e4fb234de32003a3df74bf78755623071057af80519 |