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

New sys_invocation_state and sys_journal tables #191

Merged
merged 3 commits into from
Dec 6, 2023
Merged

New sys_invocation_state and sys_journal tables #191

merged 3 commits into from
Dec 6, 2023

Conversation

jackkleeman
Copy link
Contributor

i-can't-know-how-to-hear-anymore-about-tables-i-think-you-should-leave-with-tim-robinson

Also add service_key_json cols

Best to review without whitespace, as i formatted the existing reference tables

Copy link
Contributor

@slinkydeveloper slinkydeveloper left a comment

Choose a reason for hiding this comment

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

I think you also need to add these new fields restatedev/restate#913

Copy link

cloudflare-workers-and-pages bot commented Dec 3, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 536c598
Status: ✅  Deploy successful!
Preview URL: https://a28ae8e4.documentation-beg.pages.dev
Branch Preview URL: https://tables.documentation-beg.pages.dev

View logs

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks for creating this PR @jackkleeman. There seem to be a few fields missing that were added lately.

| `in_flight` | `Boolean` | Indicates whether there is currently an execution running for this invocation. | |
| `retry_count` | `UInt64` | The number of attempts for this particular execution of this invocation. Increments on start, so 2 or more means a failure occurred. | |
| `last_start_at` | `Date64` | Timestamp indicating the start of the most recent execution of this invocation. | |
| `last_failure` | `Utf8` | An error message describing the most recent failure to execute this invocation, if any. | |
Copy link
Contributor

Choose a reason for hiding this comment

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

We seem to be missing the fields last_attempt_endpoint_id and next_retry_at.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you refresh? i added these already

| `id` | `Utf8` | [Invocation ID](/services/invocation#invocation-identifier), an opaque token that can be used to cancel an invocation of a service with the [admin API](/references/admin-api). | |
| `invoked_by` | `Utf8` | Enum describing the invoker of this service: `ingress` = invoked externally / `service` = invoked by a service. | |
| `invoked_by_service` | `Utf8` | The name of the invoking service. Or `null` if invoked via the ingress. | `com.example.Greeter` |
| `invoked_by_id` | `Utf8` | The Invocation ID of the service that triggered this invocation. Or `null` if invoked externally. | |
Copy link
Contributor

Choose a reason for hiding this comment

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

pinned_endpoint_id seems to be missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you refresh? i added this already

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

LGTM. +1 for merging.

@jackkleeman jackkleeman merged commit bcbb8af into main Dec 6, 2023
3 checks passed
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.

3 participants