Skip to content

Conversation

estolfo
Copy link
Contributor

@estolfo estolfo commented Oct 26, 2021

Simplify how we calculate the deadline for flushing data before the function times out.

resolves #65

@estolfo estolfo requested a review from astorm October 26, 2021 12:34
@github-actions github-actions bot added the aws-λ-extension AWS Lambda Extension label Oct 26, 2021
@ghost
Copy link

ghost commented Oct 26, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-10-27T13:00:35.287+0000

  • Duration: 8 min 9 sec

  • Commit: 9db1f40

Test stats 🧪

Test Results
Failed 0
Passed 66
Skipped 0
Total 66

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

Copy link
Contributor

@astorm astorm left a comment

Choose a reason for hiding this comment

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

Approving.

axis {
name 'GO_VERSION'
values '1.14', '1.15', '1.16'
values '1.15', '1.16', '1.17'
Copy link
Contributor

Choose a reason for hiding this comment

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

Re: bumping the go versions -- since the extension is compiled down to machine code it should run in Amazon's Linux environments regardless of which version we use to compile it. So I don't see any issues in dropping support for 1.14 from our perspective.

The one possible negative tradeoff here is if a user's compiling their own extension and if that user doesn't have easy access to go 1.15 or greater, we'd might be leaving them behind if we start using go 1.15+ features.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In a slack convo we decided we'll address older version support if the need comes up later on.

// Create a timer that expires after timeToWait
timer := time.NewTimer(timeToWait)
// Create a timer that expires after durationUntilFlushDeadline
timer := time.NewTimer(durationUntilFlushDeadline)
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 User of Time.Until is definitely clearer.

@estolfo estolfo merged commit 651b934 into main Oct 28, 2021
@estolfo estolfo deleted the estolfo/timer branch November 15, 2021 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws-λ-extension AWS Lambda Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

timer for flushing 100ms before function deadline doesn't fire

2 participants