Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information to terminated backends #562

Conversation

paulgb
Copy link
Member

@paulgb paulgb commented Jan 19, 2024

Doc on old <> new state mapping: https://docs.google.com/document/d/11bSSsr4uoA8fFmNyub0FqYiE-mqBZ6hTHxmoEInMTyc/edit

This adds information to the backend state:

  • reason is an optional reason that a backend was terminated, which can be Swept, External (i.e. API or CLI), or KeyExpired. reason is None if the backend is still running or exited on its own.
  • last_status records the last status before a backend entered the Terminating or Terminated state.

Copy link

vercel bot commented Jan 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plane ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 26, 2024 9:47pm

@paulgb paulgb changed the title WIP terminated backend info Add information to terminated backends Jan 19, 2024
@paulgb paulgb requested a review from rolyatmax January 19, 2024 19:06
@paulgb paulgb marked this pull request as ready for review January 19, 2024 21:40
)
values ($1, $2, $3, now(), $4, now() + $5, $6, now())
values ($1, $2, $3, now(), $4, now() + $5, $6, now(), $11)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be $7 instead of $11?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, this is the value for state, which is the 11th argument in the list below. $7 is key.name.

@paulgb paulgb merged commit 09d2ab2 into main Jan 26, 2024
6 checks passed
@paulgb paulgb deleted the paul/dis-1569-return-more-context-for-terminated-backends-in-plane2 branch January 26, 2024 22:39
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