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

Trigger service: Write packages to database if we have one #6424

Merged
merged 7 commits into from
Jun 19, 2020

Conversation

rohanjr
Copy link
Contributor

@rohanjr rohanjr commented Jun 19, 2020

This is needed to recover state after the service shuts down or crashes.
We add a method to the RunningTriggerDao to persistPackages. This only
does something in the case of a DbTriggerDao. In any case the Server
keeps a package map in memory as it's required to construct a trigger runner.
Uploads of existing packages is considered harmless.

changelog_begin
changelog_end

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

@rohanjr rohanjr requested a review from shayne-fletcher June 19, 2020 00:14
rohanjr added 3 commits June 19, 2020 11:11
This is needed to recover state after the service shuts down or crashes.
We add a method to the RunningTriggerDao to persistPackages. This only
does something in the case of a DbTriggerDao. In any case the Server
keeps a package map in memory as it's required to construct a trigger runner.

I only write the main package dalf for now until I figure out how to fix my
traversal of the package list.

changelog_begin
changelog_end
@rohanjr rohanjr force-pushed the trigger-service-persist-dalfs branch from 965e6a0 to eed0754 Compare June 19, 2020 15:37
@rohanjr rohanjr force-pushed the trigger-service-persist-dalfs branch from 44e53f9 to b5f0efc Compare June 19, 2020 16:49
@rohanjr rohanjr marked this pull request as ready for review June 19, 2020 17:00
Copy link
Contributor

@shayne-fletcher shayne-fletcher left a comment

Choose a reason for hiding this comment

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

Thanks!

@rohanjr rohanjr merged commit b10bfa1 into master Jun 19, 2020
@rohanjr rohanjr deleted the trigger-service-persist-dalfs branch June 19, 2020 17:49
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