project-codeflare / project-codeflare/codeflare-sdk

feature: batch ray job submission

Open
#308 2 comments 0 reactions 1 assignee View on GitHub

@MichaelClifford is already working on this.

Since Aug 15, 2023.

Dominant language
Python
Stars
35
Forks
66
Avg merge
48m
Merged PRs (30d)
7

Description

Today, to submit a ray job via the sdk the typical steps are:
Cluster.up()
Cluster.wait_ready()
DDPJobDefinition.submit()
Cluster.down()

The desired feature is to have one macro operation that combines the above steps, so that when the ray cluster is ready, which could be potentially hours later, the client does not have to be connected to submit the ray job. Basically submit ray cluster request + ray job definition simultaneously, in a fire and forget manner.

As an added value, this scenario is also useful when the ray cluster is obtained on a different OCP cluster. In that case, if the appwrapper is self sufficient and includes ray job definition which is passed to the ray cluster at time of its creation, there will be no need to return back a ray cluster dashboard route to the submission OCP cluster, which may be tricky.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.