-
Notifications
You must be signed in to change notification settings - Fork 19
DX-1912: Add dlq restart resume #113
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
Conversation
| type PublicDLQMessage = Pick< | ||
| DLQMessage, | ||
| | "header" | ||
| | "body" | ||
| | "maxRetries" | ||
| | "notBefore" | ||
| | "createdAt" | ||
| | "callerIP" | ||
| | "workflowRunId" | ||
| | "workflowCreatedAt" | ||
| | "workflowUrl" | ||
| | "responseStatus" | ||
| | "responseHeader" | ||
| | "responseBody" | ||
| | "dlqId" | ||
| >; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use Omit here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this and wanted to use Pick. Becauase we may add fields to DLQMessage type to match the API but not realize that those fields end up in the public API.
In the current code, you need to explicitly write which fields should be in the public API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks solid
this makes it possible to access the error message in failure function via failResponse
No description provided.