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

Fixed Jobs SDK bugs #1456

Merged
merged 8 commits into from
Feb 11, 2025
Merged

Fixed Jobs SDK bugs #1456

merged 8 commits into from
Feb 11, 2025

Conversation

WhitWaldo
Copy link
Contributor

@WhitWaldo WhitWaldo commented Feb 10, 2025

Description

Fixed reported bugs at #1455 and #1457

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1455

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

…Time property and not Schedule

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@WhitWaldo WhitWaldo changed the title Fixed bug when setting point-in-time job Fixed Jobs SDK bugs Feb 10, 2025
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
philliphoff
philliphoff previously approved these changes Feb 11, 2025
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
await context.Request.Body.CopyToAsync(memoryStream, cancellationToken);
payload = memoryStream.ToArray();
using var streamContent = new StreamContent(context.Request.Body);
payload = await streamContent.ReadAsByteArrayAsync(cancellationToken);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should work just as well, though I was specifically thinking of (I think) context.Request.Body.ReadAsByteArrayAsync().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha, whoops. For some reason, Intellisense isn't showing that as an option - I'll have to look into why.

@WhitWaldo WhitWaldo merged commit 89d9d56 into dapr:master Feb 11, 2025
12 checks passed
@WhitWaldo WhitWaldo deleted the jobs-point-in-time-fix branch February 11, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Point-in-time job fails to register
2 participants