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'
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.80.tar.gz
(52.9 kB
view hashes)
Built Distribution
Close
Hashes for statefun_tasks-0.9.80-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93e1038d7b3c80f4201169717a97c7d1f9c87aead894ff9156356f7eed6e23bc |
|
MD5 | 9e872fd941bd258f8c62217458d8314b |
|
BLAKE2b-256 | 2d494b0ef4a337085e442f1ec1419b7b6f0bda8471f04bc83a56f326853281ec |