Skip to content

GPO Upload Updates#5518

Merged
mitchellhenke merged 4 commits intomainfrom
mitchellhenke/gpo-stuff
Oct 19, 2021
Merged

GPO Upload Updates#5518
mitchellhenke merged 4 commits intomainfrom
mitchellhenke/gpo-stuff

Conversation

@mitchellhenke
Copy link
Contributor

We found a few issues with the GPO upload in the switch to workers. This PR aims to:

  • Changes the time that the GPO job runs to approximately 10AM UTC (or 6AM EDT/5AM EST)
  • Raises an error after sending the error to new relic so that the failure shows up in alarms/logs
  • Changes the uploaded file name to include hour, minute, and second so that we have something of a safe guard against overwriting the file

@mitchellhenke mitchellhenke force-pushed the mitchellhenke/gpo-stuff branch from b2deb07 to 934818e Compare October 19, 2021 14:53
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

clear_confirmations(confirmations)
rescue StandardError => error
NewRelic::Agent.notice_error(error)
raise error
Copy link
Contributor

Choose a reason for hiding this comment

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

Would the error still go to NewRelic if we removed the rescue? Since we have the GoodJob.on_thread_error go to NR already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so, but I'm not sure

Copy link
Contributor

Choose a reason for hiding this comment

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

🤷 for the time being probs safe to leave this in explicitly

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@mitchellhenke mitchellhenke merged commit 150e71e into main Oct 19, 2021
@mitchellhenke mitchellhenke deleted the mitchellhenke/gpo-stuff branch October 19, 2021 17:14
mitchellhenke pushed a commit that referenced this pull request Oct 19, 2021
* schedule GPO cron job to run before 6AM Eastern time in both DST and Standard

* more specific file name

* raise error after sending error to new relic

* Update config/initializers/job_configurations.rb

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
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.

3 participants