Skip to main content

rpc and node backbone

Project description

reaktion-next

codecov PyPI version Maintenance Maintainer PyPI pyversions PyPI status

workflow scheduler for arkitekt

Idea

reaktion is a scheduler extension for rekuest, it hooks into the agent and provides the "Deploy Flow" Node, that allows users to choose the app as a scheduler for their workflows. When deploying a flow, this plugin will create a new workflow node, which can now be reserved by any external app.

When reserving a workflow node, the plugin will create a new "Flow" Actor, which will be responsible for the execution of the workflow. This actor will keep track of the state of the workflow and acts as the scheduler.

Prerequesits

Services: In order to use reaktion_next you need a working arkitekt server with both "rekuest" (remote app calling-service) and "fluss" - (workflow design and run recording module)" installed.

Client: you need to install arkitekt-next with the "reaktion_next" extra enabled

Use inside an Arktiekt "Plugin"App

Add the reaktion_next import to your imports

from arkitekt_next import register
import reaktion_next # autoinstalls the scheduling extensions

@register
def do_something() -> None:
    """ Some other random installed functionaliry that is also provided """

Start your app via "arkitekt-next run dev". You should now see the reaktion badge appear on the AgentPage and you will find the scheduler in the Deploy Button subsection when deploying your app.

Use inside an Arkitekt "Standalone App"

from arkitekt import register, easy
import reaktion_next # autoinstalls the scheduling extensions

@register
def do_something() -> None:
    """ Some other random installed functionaliry that is also provided """



with easy("your_app_name", url="arkitekt-server-ulr") as e:
   e.run() # will start a normal arkitekt app with reaktion enabled

Experimental: Local Scheduling

An Arkitekt app that imports reaktion_next can also run entire local workflows the will call registered function in memory, and does not to copy data from and to the arkitket server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reaktion_next-0.4.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reaktion_next-0.4.0-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file reaktion_next-0.4.0.tar.gz.

File metadata

  • Download URL: reaktion_next-0.4.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.4

File hashes

Hashes for reaktion_next-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7b2e12fc0c9394762eb95a118d6150a60bf76252c1caba6d6c5eb178caeca044
MD5 6fee8292691bd6442b44c7423373e6b1
BLAKE2b-256 258aa251bbae2b48783d233c69cd767ffc5bb641820ba954d311c271c0dc6cc6

See more details on using hashes here.

File details

Details for the file reaktion_next-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reaktion_next-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2399ce2e20acd025f3510894a7f54134aa1b5330a9d9674cf56880466c7f291c
MD5 1bed5936d4fb861ea4d104daafb4f564
BLAKE2b-256 7980dc4520ad4961bcd1d6b373aa023064fd554717a9c49056fb788ef0f02fa9

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