HarbormasterBuildCommand might not yet be committed when HarbormasterBuildWorker is actually executed. When command is "leaked" - Harbormaster job gets into the start of "restarting" which can only be solved by submitting new changes into Revision.
Details
- Reviewers
artms - Group Reviewers
Blessed Reviewers
Deploy change, try restarting harbormaster job and it should succeed
Diff Detail
- Repository
- rP Phabricator
- Branch
- master
- Lint
Lint Passed - Unit
Tests Skipped - Build Status
Buildable 25276 Build 34888: Run Core Tests Build 34887: arc lint + arc unit
Event Timeline
src/applications/harbormaster/editor/HarbormasterBuildTransactionEditor.php | ||
---|---|---|
109 | Leaking of commands and "no longer" restartable test job can be reproduced by adding sleep here. sleep(30); And after you restart job you'll see that HarbormasterBuildWorker is created in worker_activetask but build command is not created in harbomaster_buildcommand table. This causes HarbormasterBuildWorker to bail out quite soon (no command to execute) and once transaction is fully commited - build command is created which essentially locks build in 'restarting' phase which can only be fixed by adding new diff to revision |
Please report this issue via Discourse, or, if applicable, your organization's support channel, rather than sending a patch.
This patch isn't the right way to approach this issue, and a clear bug report with clear reproduction steps would be far more useful.