Skip to content

v0.3.0 Added SQLite Database Backend

Choose a tag to compare

@jet-logic jet-logic released this 13 May 15:52
· 5 commits to main since this release

1. Key Improvements

  • Database Backend (procdb.py)

    • Added SQLite-based process tracking (replaces JSON files)
    • Structured schema with uuid, pid, name, cmd (JSON), and timestamps
    • Better process lifecycle management
  • Process Management (spawn.py)

    • New Spawn class with enhanced process isolation
    • Added split option to separate stdout/stderr logging
    • Improved PID handling and cleanup
  • CLI Enhancements (cli.py)

    • New --split flag for separate stdout/stderr capture
    • Improved status formatting (✅ Live/❌ Gone)
    • Better error handling for ambiguous/nonexistent processes
  • Utility Functions (utils.py)

    • Added generate_pseudowords() for default process names
    • Enhanced look_multiple() for partial/fuzzy matching
    • Case-insensitive slug generation

2. Breaking Changes

  • Storage Format: Migrated from JSON files to SQLite database (/tmp/runce.v1/db)
  • Status Labels: Changed from ✅ Running/👻 Absent to ✅ Live/❌ Gone

3. New Features

  • Split Output Logging:

    runce run --split --id my-task -- python script.py
  • Better Process Matching:

    • Exact names (runce kill my-task)
    • Partial matches (runce kill my-)
    • Ambiguous detection (multiple matches)
  • Improved CLI Output:

    Status  Elapsed  PID     Name, Command
    ─────── ──────── ─────── ────────────
    ✅ Live  00:01:23 1234    my-task, python script.py

4. Bug Fixes

  • Fixed PID cleanup race conditions
  • Improved error handling for duplicate processes
  • Better handling of subprocess stdin/stdout/stderr

5. Test Coverage

  • Added test_cli.py for end-to-end CLI testing
  • Expanded test_utils.py with new utility checks
  • New test_look.py for process matching logic

6. Example Workflow

# Start process with split logging
runce run --split --id my-script -- python script.py

# Check status (new format)
runce list

# Tail stderr only
runce tail --err my-script

# Clean up
runce kill --remove my-script