Skip to content

A local job running server with CLI and web interface

License

Notifications You must be signed in to change notification settings

ARoefer/roejobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roejobs

Roejobs is a local job scheduling and management tool designed for running, monitoring, and controlling long-running tasks on a single machine. It provides:

  • A background job server managing multiple tasks simultaneously.
  • A CLI for submitting jobs from files or the command line.
  • A web dashboard to monitor job status, view logs, cancel or restart jobs.
  • Automatic management of working directories, output logs, and job queuing.

Features

  • Queue jobs from files or directly from the CLI.
  • Support for CWD=... prefixes per job or global override.
  • View running, queued, succeeded, failed, or cancelled jobs in a web browser.
  • Stream job stdout/stderr to log files and view them via the dashboard.
  • Cancel or restart jobs directly from the web UI.
  • Shutdown the server gracefully from the web UI.
  • CLI automatically launches the server in the background if it is not running.

Installation

pip install roejobs

This will install the CLI commands and the package itself. Or, if you cloned this package locally:

pip install -e .

Starting the server

Start the job server on the default port (5678):

roejobs-server

Optional arguments:

roejobs-server --port 1234           # Specify a custom port
roejobs-server --n-processes 20      # Set maximum concurrent jobs
  • The server runs locally (127.0.0.1) and serves the web dashboard.
  • Default maximum concurrent jobs: 10.

Access the dashboard

Open your browser at: (http://127.0.0.1:5678/)

From here you can:

  • Monitor all jobs
  • View logs
  • Cancel or restart jobs
  • Shut down the server

Submitting jobs via CLI

1. From a task file

Each line of a task file is a job:

# Comment lines start with #
CWD=./exp python train.py --lr 0.001 --batch-size 64
python eval.py --checkpoint ckpt.pt

Submit jobs:

roejobs-cli tasks.txt

Optional flags:

  • --override-cwd — ignore CWD=... in job specs and use the CLI's current working directory.
  • --server — point to a server on a custom port.

2. Inline submission

You can also submit jobs directly from the CLI:

roejobs-cli --jobs "python quick_test.py" "CWD=./exp ./run.sh --config cfg.yaml"
  • Syntax matches task files.
  • Works with or without --override-cwd.

3. Lazy server start

If the server is not running, the CLI automatically launches it in the background on the correct port.

Job spec syntax

  • Lines starting with # are ignored.
  • Optional working directory per job:
CWD=some/path command args...
  • If no CWD is specified, the CLI/server uses the current directory.
  • Commands can be very long; they are truncated in the dashboard for readability, with full output available in the log view.

Web dashboard features

  • Job table showing status: Queued, Running, Succeeded, Failed, Cancelled.
  • Full command and logs available per job.
  • Cancel or restart individual jobs.
  • Shut down server with a single button (gracefully kills running jobs).
  • Commands truncated visually for long parameters, with full command in a tooltip.

Example workflow

# Start server (background auto-start optional)
roejobs-server --port 5678

# Submit jobs from a file
roejobs-cli tasks.txt

# Submit inline jobs
roejobs-cli --jobs "python train.py --lr 0.01" "CWD=./exp ./run.sh"

# Open browser to monitor jobs
firefox http://127.0.0.1:5678/

Notes

  • Roejobs is local-only and designed for single-machine usage.
  • The web interface is unprotected, so only bind to 127.0.0.1.
  • Logs for each job are stored in temporary directories and accessible from the web UI.

About

A local job running server with CLI and web interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published