Skip to content

Tweaks to GPO expiration job + rake task#9590

Merged
matthinz merged 3 commits intomainfrom
matthinz/gpo-expiration-tweaks
Nov 14, 2023
Merged

Tweaks to GPO expiration job + rake task#9590
matthinz merged 3 commits intomainfrom
matthinz/gpo-expiration-tweaks

Conversation

@matthinz
Copy link
Contributor

@matthinz matthinz commented Nov 14, 2023

I ran into some issues with Postgres statement timeouts when attempting to run the GPO expiration rake task I wrote in #9545. So I took the opportunity to clean up a few things, including:

  • Make the rake task invoke the job's .perform method directly rather than duplicating the loop that the job runs in the rake task itself
  • Add a configurable statement timeout so I can tweak it without needing a deploy
  • Note earliest + latest timestamps found in rake task output

- Make the rake task invoke the job's .perform method directly
- Note earliest + latest timestamps found in rake task output
- Add configurable statement timeout to job

[skip changelog]
@matthinz matthinz changed the title Matthinz/gpo expiration tweaks Tweaks to GPO expiration job + rake task Nov 14, 2023
(Fix brakeman warning)
Copy link
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

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

LGTM

@matthinz matthinz merged commit c56b867 into main Nov 14, 2023
@matthinz matthinz deleted the matthinz/gpo-expiration-tweaks branch November 14, 2023 22:36
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