Runner for Workflows Defined in AskUI Studio
Project description
askui-runner
Runner for Workflows Defined in AskUI Studio.
Table of Contents
Requirements
- Python 3.10 or higher
- Node.js 16 or higher
Installation
We recommend using a virtual environment for Python. Make sure python --version returns 3.10 or higher:
python -m venv venv
source venv/bin/activate
We have not yet published the AskUI Runner to PyPI. For now, you can install it directly from GitHub:
pip install git+https://github.com/askui/askui-runner.git
Currently, the standard logging output of the AskUI runner is minimal - we are soon going to change that. But you should see the runner starting the running of workflows as soon as you schedule some runs through the AskUI Studio.
Usage
Create a configuration file (.y{a}ml or .json) in a directory of your choosing. The configuration file should contain at least some credentials and the command with which you start the runner without the config file flag:
runner:
exec: python -m askui_runner # update if your command is different
tags: [<tag 1>, <tag 2>, ..] # replace with your own runner tags
queue:
api_url: https://workspaces.askui.com/api/v1/runner-jobs
credentials:
workspace_id: <workspace id> # replace with your workspace id
access_token: <access token> # replace with your access token
See Generating up-to-date Configuration Schema
Start the runner using
python -m askui_runner start -c <path to your config file, e.g., askui-runner.config.yaml>
Start UiController
If you want to run your workflows on the same system as the runner you need to start an UiController that listens on port 6769. Please download the one for your operating system and start it:
- For Windows please your our AskUI Installer: Windows Getting Started
- Linux
ℹ️ macOS After installation to
Applicationsremove the quarantine flag with the following command run from a terminal:xattr -d com.apple.quarantine /Applications/askui-ui-controller.app
Execute Workflows on a Remote System: Change UiController URL
You can change the UiController-URL so the runner can talk to a UiController that runs on a remote machine or on a different port:
...
runner:
...
controller:
host: "127.0.0.1"
port: 7000
Generating up-to-date Configuration Schema
Requirements:
- PDM 2.8 or higher for contributing and creating the JSON schema of the config
Find out about all configuration options by taking a look at the JSON schema of the configuration. You can generate an up-to-date JSON schema by cloning this repository and running the following commands.
## Install and initialize pdm
pip install pdm
pdm install
pdm run python -m scripts.generate_config_schema_json
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository.
- Create a new branch:
git checkout -b your-feature-name - Commit your changes:
git commit -am 'Add some feature' - Push the branch:
git push origin your-feature-name - Submit a pull request.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file askui_runner-0.2.9.tar.gz.
File metadata
- Download URL: askui_runner-0.2.9.tar.gz
- Upload date:
- Size: 109.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.3 CPython/3.13.1 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
054976c908c9383f94beb91669d2de2fcf74c0dba3c2beffba0f0301df6983da
|
|
| MD5 |
c1287937d1f6f934b55f9f4de04534dc
|
|
| BLAKE2b-256 |
6be99b0e8d94dd510705a68696a059831f19f328335bd29b7a769c0e2517d1cd
|
File details
Details for the file askui_runner-0.2.9-py3-none-any.whl.
File metadata
- Download URL: askui_runner-0.2.9-py3-none-any.whl
- Upload date:
- Size: 204.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.3 CPython/3.13.1 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a34fd9ef85cabe84beb78c08cc31fd26099c36641d4cd79a037d605f9d71f28
|
|
| MD5 |
15006ee47a22445d47f3fe2142c9400e
|
|
| BLAKE2b-256 |
0aaf97a12b74d3a1d1cc938d638c3ba1769c2fecfde106b6ebda6d28209871bd
|