Today 2021-02-20, 14:30 local time, force:limits:api:display
shows:
Package2VersionCreates 6 6
Package2VersionCreatesWithoutValidation 500 500
At the same hour, when trying to create a package version, I get the error:
The package2 version create request failed because this organization has reached its daily limit
And in fact, sfdx force:package:version:create:list
shows that the limit is reached, at least when assuming that failed version creation requests count towards the limit:
08c09000000oMSWAA2 Error 0Ho09000000oLuFCAU 2021-02-19 13:50
08c09000000oMSgAAM Error 0Ho09000000oLuFCAU 2021-02-19 16:48
08c09000000oMSlAAM Error 0Ho09000000oLuFCAU 2021-02-19 17:31
08c09000000oMSqAAM Error 0Ho09000000oLuFCAU 2021-02-19 17:36
08c09000000oMSvAAM Error 0Ho09000000oLuFCAU 2021-02-20 13:29
08c09000000oMT0AAM Error 0Ho09000000oLuFCAU 2021-02-20 13:41
08c09000000oMT5AAM Error 0Ho09000000oLuFCAU 2021-02-20 13:53
It would be nice if force:limits:api:display
took the failed version creation attempts into account, same as the package version creation does when checking / enforcing the limit.
I guess I have to go for a walk until at least 5 o'clock. :-)
force:limits:api:display
if theforce:package:version:create
counts them against the limit it enforces.force:limits:api:display -u devHub
I see now 2 remaining, which tallies with the output offorce:package:create:list -v devHub
(the -v devHub seems to be implicit in VS Code project setting I am in). Both together confirm that failed version creations (exclusive of the ones failed because of exceeded limits) do count against the limit (which makes sense, the limit being meant to limit the workload that can be generated in the cloud infrastructure)