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.3.1.tar.gz (17.0 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.3.1-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reaktion_next-0.3.1.tar.gz
Algorithm Hash digest
SHA256 199d23f113d317e9135d6672648b1394472f812d85b57a710d2edf85bc40b4ca
MD5 02efd7c53d7633815297a51778fab28b
BLAKE2b-256 6a6eccc79604d04fcb4ed6d0a817fdf892fb398cd123b7e0972d77c4e68e25e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reaktion_next-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2abe9203497eb9ddcbdd6d5cbe0a9409c97935abde4aa9fb53b2f6bf3d10b82
MD5 d51d7067fbf7ff1bf0a6bcf3de03718b
BLAKE2b-256 0e3abd96470a7648ae75c13ff2ec7fc156e5d7088d85b8d5e9c992124b221246

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