orbitalci / orbital

Orbital is a self-hosted CI system for solo/small consulting dev teams. Written in Rust.
GNU General Public License v3.0
29 stars 2 forks source link

Need stable DB info for tracking build environment and process identifiers #245

Closed tjtelan closed 4 years ago

tjtelan commented 4 years ago

While working on build cancellation for #243 I've come across a need for being able to get the handle of the "environment" that is currently running. My current strategy is to calculate the container name and send a cancel signal to the Docker API, but this won't scale to when I eventually want to support non-docker builds.

My current thought is that I want to modify the build_stage table so that I have the following information.

We're not doing anything like registering build hosts, so I'm not quite sure how much information I want to stuff into this table. Perhaps it might be time to register builders?