Closed ryanbrainard closed 7 years ago
We added this logic a year ago, when we started work on preventing releases from running concurrently, but that work was canceled.
@jbyrum what do you think of always showing "pending" and never "release command executing"? cc @heroku/build
@dmathieu I think we need to discuss this one in person. Can we talk in our weekly build meeting?
We're going to be fixing this to always show "release command executing", and go back to the drawing board for preventing releases from running concurrently.
This code determines this
runningRelease
:This logic depends on how many and which other releases are in
releases
. For example, in the example below, if there are 29 releases, the last two arepending
(in JSON), so they are displayed the user as v289 beingpending
and v289 beingrelease command executing
.However, by only fetching 28 releases, v289 changes to
release command executing
because it is now considered therunningRelease
:In addition to this problem, it is questionable why the last release is considered the
runningRelease
at all. Shouldn't API be getting this information from the runtimes? I don't see how the CLI would be able to determine this on it's own.