Skip to content

Add switch LineItemsJobs #27877

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

Merged
merged 8 commits into from
Apr 14, 2025
Merged

Conversation

deedeeh
Copy link
Contributor

@deedeeh deedeeh commented Mar 27, 2025

What is the value of this and can you measure success?

Adding confidence if something went wrong with the new line items jobs (state machine generates S3 objects) we can switch off LineItemsJobs which means read and write from and to dfp/.

What does this change?

This PR adds a feature switch to the CommercialSwitches.

The following changes relies on the switch:

  • Switch on
  1. Read from gam/ which contains the S3 objects from the new line items jobs stack the Commercial team created.
  2. No write to S3 for lineitems-v7.json and non-refreshable-lineitem-ids-v1.json in other words we won't update those objects anymore as we will be using the ones from the new stack.
  • Switch off
  1. Read from dfp/ which has the current generated S3 objects by EC2 instances.
  2. Write to S3 for lineitems-v7.json and non-refreshable-lineitem-ids-v1.json

The new stack currently just generates the line items and non refreshable line items ids and we will continue the work on the other json files along the way.

Checklist

  • Tested locally, and on CODE if necessary

@deedeeh deedeeh force-pushed the dina/add-switch-for-line-items-jobs-stack branch 2 times, most recently from 51a88eb to 3639dfd Compare April 7, 2025 16:40
@deedeeh deedeeh marked this pull request as ready for review April 8, 2025 11:57
@deedeeh deedeeh requested a review from a team as a code owner April 8, 2025 11:57
@deedeeh deedeeh force-pushed the dina/add-switch-for-line-items-jobs-stack branch from 99c4e6c to 72719cb Compare April 8, 2025 15:43
@deedeeh deedeeh changed the title Add switch LineItemsJobsAtck Add switch LineItemsJobs Apr 8, 2025
@cemms1 cemms1 requested a review from a team April 10, 2025 09:09
@deedeeh deedeeh merged commit e046d41 into main Apr 14, 2025
6 checks passed
@deedeeh deedeeh deleted the dina/add-switch-for-line-items-jobs-stack branch April 14, 2025 08:36
@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD, ADMIN-PROD (merged by @deedeeh 13 minutes and 34 seconds ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants