Page MenuHomePhabricator

Allow daemons to be run in the foreground
AbandonedPublic

Authored by joshuaspence on Jul 8 2019, 3:00 AM.
Tags
None
Referenced Files
F19731164: D20643.id.diff
Sat, Feb 14, 6:59 PM
F19566132: D20643.diff
Sat, Jan 31, 7:45 PM
F19514395: D20643.diff
Jan 14 2026, 1:38 AM
F19072676: D20643.id.diff
Nov 30 2025, 11:12 PM
F19072671: D20643.id.diff
Nov 30 2025, 11:06 PM
F19064606: D20643.id.diff
Nov 29 2025, 10:09 PM
F19058273: D20643.id.diff
Nov 29 2025, 1:43 AM
F19006039: D20643.id49246.diff
Nov 21 2025, 5:10 PM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

Currently there's no way to run all daemons in the foreground.

  • bin/phd start executes all daemons in the background.
  • bin/phd launch executes a single daemon in the background.
  • bin/phd debug executes a single daemon in the foreground, but also enables verbose log output.

Add a --foreground flag to bin/phd start and bin/phd launch to allow daemons to be executed in the foreground. I plan to use this as an entrypoint in a Docker container.

Test Plan

Ran the following commands alongside bin/worker flood and verified that daemons were functional:

    • bin/phd start
  • bin/phd start --foreground
  • bin/phd launch task
  • bin/phd launch --foreground task
  • bin/phd debug task

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
Tests Skipped
Build Status
Buildable 23114
Build 31736: Run Core Tests
Build 31735: arc lint + arc unit

Event Timeline

src/applications/daemon/management/PhabricatorDaemonManagementStatusWorkflow.php
25

Unrelated fix

We don't have any customer use cases for this so I'm not interested in bringing it upstream at this time.

This revision now requires changes to proceed.Jul 8 2019, 3:10 PM