Giter Club home page Giter Club logo

beaker-run-action's Introduction

beaker-run

A GitHub Action for submitting experiments to Beaker.

By default the action will wait for the experiment to complete, then print the logs from the experiment and exit with the same exit code as the experiment. In this way you can essentially use this action to run a step of your workflow on Beaker. This is useful when you need special hardware, such as GPUs, for a step.

Inputs

spec (required)

A YAML or JSON experiment spec. This can also be a path to a YAML or JSON file.

token (required)

Your Beaker token.

workspace (required)

The Beaker workspace to use.

name (optional)

A name to assign the experiment. If not specified, a random name will be generated.

clusters (optional)

A comma-separated list of clusters that can be used to override the cluster in the spec for a task, if any of them have enough resources avaiable.

For example, you may want to set the cluster in your spec to a scalable cloud cluster, and then set the clusters input to a list of on-premise clusters. That way if any of those on-premise clusters have enough resources available, they will be used instead of the cloud cluster specified in the experiment spec.

timeout (optional)

Time to wait (in seconds) for the experiment to finish.

A timeout of -1 (the default) means wait indefinitely, a timeout of 0 means don't wait at all, and a positive timeout means the action will wait that many seconds for the experiment to complete. If the experiment doesn't complete within timeout seconds, it will be stopped and the action will exit as a failure.

NOTE: When timeout is 0, the action will always succeed even if the Beaker experiment doesn't succeed.

poll_interval (optional)

Time to wait (in seconds) between polling for status changes of the experiment's jobs.

Example

uses: allenai/beaker-run@v1
with:
  spec: |  # <-- !! This bar "|" is important !!
    version: "v2"
    description: "Hello, World!"
    tasks:
      - name: "hello"
        image:
          docker: "hello-world"
        context:
          cluster: "ai2/petew-cpu"
        result:
          path: "/unused"
  token: ${{ secrets.BEAKER_TOKEN }}
  workspace: ai2/petew-testing
  clusters: ai2/general-cirrascale,ai2/allennlp-cirrascale

beaker-run-action's People

Contributors

dependabot[bot] avatar epwalsh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.