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 #298 #299

Merged
merged 2 commits into from
Nov 30, 2018
Merged

Fix #298 #299

merged 2 commits into from
Nov 30, 2018

Conversation

sheagcraig
Copy link
Contributor

This makes a few changes to the checkin ManagedInstalls processing
logic.

  • Don't create a pending UpdateHistoryItem for already installed items.
  • Use the Munki run's StartTime instead of the server's time at
    check-in to create pending items.
  • Clean out out-of-date datetime parsing for install/removal results.
  • Only create new UpdateHistoryItems when they are newer than the last
    existing item, in addition to the other checks (this is the main one
    solving the Checkin causes sporadic IntegrityError exceptions #298 issue).

This makes a few changes to the checkin ManagedInstalls processing
logic.
- Don't create a pending UpdateHistoryItem for already installed items.
- Use the Munki run's `StartTime` instead of the server's time at
  check-in to create pending items.
- Clean out out-of-date datetime parsing for install/removal results.
- Only create new UpdateHistoryItems when they are newer than the last
  existing item, in addition to the other checks (this is the main one
  solving the #298 issue).
Copy link
Member

@grahamgilbert grahamgilbert left a comment

Choose a reason for hiding this comment

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

Looks reasonabe to me

@grahamgilbert grahamgilbert merged commit 639d892 into master Nov 30, 2018
@sheagcraig sheagcraig deleted the fix_298 branch November 30, 2018 14:32
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