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

Bug 1505050 - make the request nagging script more robust #886

Merged
merged 1 commit into from Nov 14, 2018

Conversation

dylanwh
Copy link
Contributor

@dylanwh dylanwh commented Nov 6, 2018

  1. The nags script switches to the shadow database, but $dbh is defined
    before that happens and is thus the primary database. This is easily fixed by
    using Bugzilla->dbh
  2. Since we have DBIx::Connector, we can run the sql in fixup mode, so that if
    it gets disconnected, it will retry the code. This is perfectly safe for the
    the two big sql queries.

1. The nags script switches to the shadow database, but $dbh is defined
   before that happens and is thus the primary database. This is easily fixed by
   using Bugzilla->dbh
2. Since we have DBIx::Connector, we can run the sql in fixup mode, so that if
   it gets disconnected, it will retry the code. This is perfectly safe for the
   the two big sql queries.
@dylanwh dylanwh changed the title make the nags script more robust Bug 1505050 - make the request nagging script more robust Nov 6, 2018
@dylanwh dylanwh requested a review from dklawren November 6, 2018 20:14
Copy link
Collaborator

@dklawren dklawren left a comment

Choose a reason for hiding this comment

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

No issues. r=dkl

@dylanwh dylanwh merged commit fce8561 into mozilla-bteam:master Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants