Slurm connector

Installation

To install the Slurm connector, run the following command:

$ pip install flytekitplugins-slurm

Example usage

For the example usage of different Slurm task types, please see Slurm connector example usage.

Local testing

To test the Slurm connector locally, create a class for the connector task that inherits from AsyncConnectorExecutorMixin. This mixin can handle asynchronous tasks and allows flytekit to mimic FlytePropeller’s behavior in calling the connector.

In some cases, you will need to store credentials in your local environment when testing locally.

Flyte deployment configuration

If you are using a managed deployment of Flyte, you will need to contact your deployment administrator to configure connectors in your deployment.

To enable the Slurm connector in your Flyte deployment, see the Slurm connector deployment guide.