Flyte agent for Perian Job Platform (perian.io)
Project description
Flytekit Perian Job Platform Plugin
Flyte Agent plugin for executing Flyte tasks on Perian Job Platform (perian.io).
Perian Job Platform is still in closed beta. Contact support@perian.io if you are interested in trying it out.
To install the plugin, run the following command:
pip install flytekitplugins-perian-job
Getting Started
This plugin allows executing PythonFunctionTask on Perian.
An ImageSpec need to be built with the perian agent plugin installed.
Parameters
The following parameters can be used to set the requirements for the Perian task. If any of the requirements are skipped, it is replaced with the cheapest option. At least one requirement value should be set.
cores: Number of CPU coresmemory: Amount of memory in GBaccelerators: Number of acceleratorsaccelerator_type: Type of accelerator (e.g. 'A100'). For a full list of supported accelerators, use the perian CLI list-accelerators command.country_code: Country code to run the job in (e.g. 'DE')
Credentials
The following secrets are required to be defined for the agent server:
- Perian credentials:
perian_organizationperian_token
- For accessing the Flyte storage bucket, you need to add either AWS or GCP credentials. These credentials are never logged by Perian and are only stored until then are used, then immediately deleted.
- AWS credentials:
aws_access_key_idaws_secret_access_key
- GCP credentials:
google_application_credentials. This should be the full json credentials.
- AWS credentials:
- (Optional) Custom docker registry for pulling the Flyte image:
docker_registry_urldocker_registry_usernamedocker_registry_password
Example
example.py workflow example:
from flytekit import ImageSpec, task, workflow
from flytekitplugins.perian_job import PerianConfig
image_spec = ImageSpec(
name="flyte-test",
registry="my-registry",
python_version="3.11",
apt_packages=["wget", "curl", "git"],
packages=[
"flytekitplugins-perian-job",
],
)
@task(container_image=image_spec,
task_config=PerianConfig(
accelerators=1,
accelerator_type="A100",
))
def perian_hello(name: str) -> str:
return f"hello {name}!"
@workflow
def my_wf(name: str = "world") -> str:
return perian_hello(name=name)
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 flytekitplugins_perian_job-1.13.15.tar.gz.
File metadata
- Download URL: flytekitplugins_perian_job-1.13.15.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86cd2f893b49efe381398dc59e05230f11026e0370a22111e4c0b09a94cf5642
|
|
| MD5 |
bfec213acc3c9a51f25486fae003a1de
|
|
| BLAKE2b-256 |
4987c74ed78e3230a6c99a7ec39892db80916a3734c50a47d25621503c2d0677
|
File details
Details for the file flytekitplugins_perian_job-1.13.15-py3-none-any.whl.
File metadata
- Download URL: flytekitplugins_perian_job-1.13.15-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0ad0e780f45714184807288854e6c9c5ad16dda98f4029830cbe4fdf83e680a
|
|
| MD5 |
b447b29feca5719fddaa5285acfc8f49
|
|
| BLAKE2b-256 |
f3a815a7e90ac5289beeba3ae2b2af7b13f196a6a55219012c998f4f7962104e
|