Skip to content

fix(taskctl): pulse_pid always shows none in taskctl status — startPulse never updates job record #264

@randomm

Description

@randomm

Task Description

taskctl status <issue> always shows Pulse PID: none even when Pulse is actively running. This makes it impossible to know if Pulse is healthy without checking the lock file separately.

Root Cause

startPulse writes a lock file with process.pid but never updates job.pulse_pid in the database. The status command reads job.pulse_pid from the DB, which is always null.

Fix

After writeLockFile in startPulse's startJob() function, also call:

await Store.updateJob(projectId, jobId, { pulse_pid: process.pid })

Quality Gates (Non-Negotiable)

  • TDD: Write tests before implementation
  • Coverage: 80%+ test coverage for new code
  • Linting: All code passes project linting rules
  • Local Verification: All tests pass locally before completion

Acceptance Criteria

  • taskctl status shows the correct Pulse PID when Pulse is running
  • taskctl status shows Pulse PID: none only when Pulse is not running
  • Unit test verifies job.pulse_pid is updated on startPulse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions