WIP autoscaler agent
This commit is contained in:
parent
c610a3e284
commit
28059dcedf
34 changed files with 2409 additions and 35 deletions
24
agent/nix_builder_autoscaler/__main__.py
Normal file
24
agent/nix_builder_autoscaler/__main__.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
"""Daemon entry point: python -m nix_builder_autoscaler — stub for Plan 04."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Parse arguments and start the daemon."""
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="nix-builder-autoscaler",
|
||||
description="Nix builder autoscaler daemon",
|
||||
)
|
||||
parser.add_argument("--config", required=True, help="Path to TOML config file")
|
||||
args = parser.parse_args()
|
||||
|
||||
print(f"nix-builder-autoscaler: would start with config {args.config}")
|
||||
print("Full daemon implementation in Plan 04.")
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue