Add a job launcher to your project
A job launcher defines the environment, default compute resources, and job command for background Jobs in your project.
Job launchers do not support global environments. You must use Create from code or a custom Docker image. Global environments are only available for interactive Sessions.
Create a job launcher
-
In the Sessions section of the project page, click + to add a new launcher.
-
In the Select the type of launcher to create modal, choose Job.
-
Choose and configure an environment:
- Create from code — Renku builds an environment from a code repository (for example, one with an
environment.ymlorrequirements.txt). See How to create an environment with custom packages installed. - Custom image — use your own Docker image. See How to use your own docker image for a Renku session.
- Create from code — Renku builds an environment from a code repository (for example, one with an
-
Configure the job command as a JSON array, for example
["python", "my_repo/main.py"]. This command is required and defines what runs when someone submits a job from this launcher.You can optionally set job args as a separate JSON array.
-
Set a name and optional description for the launcher.
-
Select the resource class that best fits your expected computational needs. (see Resource Pool and Classes)
tipDo you need more resources than are available in RenkuLab's public resource classes? Contact us! We can configure a custom resource pool for your needs upon demand.
-
Click Add launcher (or the equivalent button to save the launcher).
If your environment is built from code, wait for the environment build to succeed before submitting a job. You can rebuild the environment from the launcher card if needed.
Next steps
Once your job launcher is ready, see How to submit a job.