Skip to content

Poll GitHub API instead of using webhooks #14

@pzehner

Description

@pzehner

This project sounds very interesting for the needs of my lab. Unfortunately, opening a port plus having a reverse-proxy running on a machine that submits SLURM jobs is not really an option for me. As an alternative to using a webhook, would it be possible to poll the GitHub API instead?

I dug a little bit, sounds like you get the worflows of a repository with:

https://api.github.com/repos/USER/NAME/actions/workflows

then you get the latest runs of a workflow with:

https://api.github.com/repos/USER/NAME/actions/workflows/WORKFLOW_ID/runs

filter the queuing runs, then you get the jobs of a run with:

https://api.github.com/repos/USER/NAME/actions/runs/RUN_ID/jobs

filter the self-hosted jobs and you get the expected labels for the runner to spawn.

I'd love to contribute to this, but I'm not familiar with Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions