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

Use mirai for Async Appender #215

Merged
merged 8 commits into from
Oct 9, 2024
Merged

Use mirai for Async Appender #215

merged 8 commits into from
Oct 9, 2024

Conversation

shikokuchuo
Copy link
Contributor

Thanks for pointing me to this @daroczig!

Rebases and adds a commit to @hadley's #208 with more efficiency in the setup.

It also maps the logger namespace to mirai's 'compute profile', basically the same concept.

This checks fine for me. The snapshot test error seems unrelated (I'm also getting this locally running off main).

One thing to note is that the background process isn't terminated. This is not a problem in real life as it will automatically terminate when the main session ends, but you should be aware if attempting to test on CRAN for instance. You'd need to add a daemons(0L, .compute = namespace) somewhere in the teardown.

hadley and others added 4 commits October 5, 2024 11:13
This works for me interactively, but the tests fail, so if this is of interest, I'll have to explore further.
@shikokuchuo
Copy link
Contributor Author

What... exists() only takes a symbol starting in R4.1?? Couldn't find a mention of it in R News, but seems vaguely familiar. Let me test and fix for you. Luckily for both of us, I'm about a day out from a new mirai release.

@shikokuchuo
Copy link
Contributor Author

I've fixed in shikokuchuo/mirai@f68afca. If you can come back in a day's time, I'll add a commit that modifies the min version req. for mirai once I've released it.

@daroczig
Copy link
Owner

daroczig commented Oct 8, 2024

Thank you so much!! 🙌

@shikokuchuo
Copy link
Contributor Author

Should be all set now.

@shikokuchuo
Copy link
Contributor Author

Increasing the sleep time just a little makes the coverage test pass for me locally.

@daroczig
Copy link
Owner

daroczig commented Oct 9, 2024

oh, thanks a ton, I was not able to repro the error locally

@shikokuchuo
Copy link
Contributor Author

hmmm let me widen it to 1s

@daroczig
Copy link
Owner

daroczig commented Oct 9, 2024

fantastic, thanks a ton for this update and all the related small fixes 🙇

@daroczig daroczig merged commit f4c89a2 into daroczig:main Oct 9, 2024
14 checks passed
@shikokuchuo
Copy link
Contributor Author

Thanks to @hadley who figured it out. I just tidied up his PR.

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