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

Fix bug where ephemeral logs were not getting cleared #9

Merged
merged 1 commit into from
Oct 4, 2015

Conversation

hellogerard
Copy link
Contributor

Hello, thanks for the package. Great work. So much easier to drop in a database queue if possible rather than setup a whole other service just to queue jobs.

I had a problem where the ephemeral logs were not getting cleared in my database. Over time, it generated over 1MM records in the log. I noticed a number of issues with both the code designed to purge ephemeral logs and in the test for the same. I think, due to some interactions and by sheer coincidence, the test passed in spite of these issues. In creating this PR, I got the tests broken, then got them passing again with these changes.

Details are in the commit message. What do you think? Possible to release these soon?

- Ensure 'ephemeral' and 'before' are not references to the same object
- Use 'ephemeral' variable and not 'before' in log-clearing query
- Use 'setTime' and not 'setDate' when setting via timestamp
- Fix log purge test same as above
- Fix log purge test by removing extraneous whitespace in 'ephemeralLogStatuses'
- Correct 'microseconds' to 'milliseconds' in docs/comments
- Add package name to package.js
- Add underscore to support Meteor 1.2 (since meteor-platform goes away)
artwells added a commit that referenced this pull request Oct 4, 2015
Fix bug where ephemeral logs were not getting cleared
@artwells artwells merged commit 7a679d5 into artwells:master Oct 4, 2015
@artwells
Copy link
Owner

artwells commented Oct 4, 2015

Thanks! Looks great.

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.

2 participants