This repository contains the necessary scripts and configuration files to start a Prefect process worker with conda, Podman and Slurm flows.
-
Create a conda environment with the required packages:
conda create --name myenv python=3.11
-
Activate the conda environment:
conda activate myenv
-
Install the package. This will install dependencies.
python -m pip install .
-
Change permissions for the shell scripts to make them executable:
chmod +x start_worker.sh chmod +x flows/podman/bash_run_podman.sh
-
Run the
start_worker.sh
script to start the Prefect worker:./start_worker.sh
MLExchange Copyright (c) 2024, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
If you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Intellectual Property Office at [email protected].
NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.