Skip to content

docs(server-rent): warn against retrying hung rent commands#59

Open
marvin-69-jpg wants to merge 1 commit into
zeabur:mainfrom
marvin-69-jpg:fix/server-rent-idempotency
Open

docs(server-rent): warn against retrying hung rent commands#59
marvin-69-jpg wants to merge 1 commit into
zeabur:mainfrom
marvin-69-jpg:fix/server-rent-idempotency

Conversation

@marvin-69-jpg
Copy link
Copy Markdown

Summary

server rent is a billable action with no built-in idempotency. If the foreground command produces no output for a while and the agent re-issues it, both calls can succeed and you end up with two servers (and two monthly charges). I hit this exactly: a foreground rent command appeared hung, I retried, and server list then showed two new "Tencent Tokyo 2C 4GB" servers (one ID ...49, the other ...4c) created within seconds of each other.

The CLI has no server delete subcommand, so the only recovery is the dashboard at https://zeabur.com/account/server. Cost of a wrongful retry is non-trivial.

Adds an explicit warning to:

  • Run foreground (not background)
  • Wait for output before retrying
  • Poll server list -i=false --json to see if a new server has appeared, rather than guessing whether the prior call succeeded

Test plan

  • Reproduced double-rent: same server rent --provider tencent --region ap-tokyo --plan ... issued twice in quick succession produced two distinct servers, both billed
  • Confirmed CLI has no server delete subcommand (server --help lists only catalog, get, list, plans, providers, reboot, regions, rent, ssh)

🤖 Generated with Claude Code

server rent is a billable action with no built-in idempotency. If the
foreground command produces no output for a while and you re-issue it,
both calls succeed and you end up with two servers (and two monthly
charges). The CLI has no 'server delete' subcommand — duplicates have to
be removed via the dashboard at https://zeabur.com/account/server.

Add an explicit warning to run foreground, wait for output before
retrying, and to poll 'server list' rather than guessing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 26, 2026

Warning

Rate limit exceeded

@marvin-69-jpg has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 58 minutes and 18 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 58 minutes and 18 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7d2b6cb2-f21a-46b2-a970-817b97098bbe

📥 Commits

Reviewing files that changed from the base of the PR and between 78b02c1 and 6b73f6e.

📒 Files selected for processing (1)
  • skills/zeabur-server-rent/SKILL.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants