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

chore(warehouse): use first_event_at while pickup for warehouse processing jobs #3036

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

achettyiitr
Copy link
Member

Description

Use first_event_at while pickup for warehouse processing jobs

Notion Ticket

https://www.notion.so/rudderstacks/Use-first_event_at-while-pickup-from-processing-31c841fcdecc4ea8b6139ee0cb4d8daa?pvs=4

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@codecov
Copy link

codecov bot commented Feb 26, 2023

Codecov Report

Base: 52.97% // Head: 53.12% // Increases project coverage by +0.14% 🎉

Coverage data is based on head (c7010f5) compared to base (ed83eaa).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3036      +/-   ##
==========================================
+ Coverage   52.97%   53.12%   +0.14%     
==========================================
  Files         334      334              
  Lines       51863    51858       -5     
==========================================
+ Hits        27475    27548      +73     
+ Misses      22785    22707      -78     
  Partials     1603     1603              
Impacted Files Coverage Δ
warehouse/internal/repo/upload.go 82.36% <100.00%> (ø)
regulation-worker/internal/delete/api/api.go 65.30% <0.00%> (-1.58%) ⬇️
regulation-worker/internal/service/service.go 74.07% <0.00%> (ø)
regulation-worker/internal/delete/batch/batch.go 50.56% <0.00%> (ø)
jobsdb/jobsdb.go 74.03% <0.00%> (+0.12%) ⬆️
jobsdb/backup.go 75.76% <0.00%> (+0.35%) ⬆️
regulation-worker/internal/client/client.go 71.53% <0.00%> (+0.44%) ⬆️
config/backend-config/backend-config.go 83.33% <0.00%> (+1.58%) ⬆️
jobsdb/migration.go 78.35% <0.00%> (+2.06%) ⬆️
testhelper/freeport.go 80.00% <0.00%> (+13.33%) ⬆️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -263,7 +264,7 @@ func (uploads *Uploads) GetToProcess(ctx context.Context, destType string, limit
grouped_uploads.row_number = 1
ORDER BY
COALESCE(metadata->>'priority', '100')::int ASC,
id ASC
COALESCE(first_event_at, NOW()) ASC
Copy link
Member

Choose a reason for hiding this comment

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

It shouldn't be complex to write a test for first_event_at behaviour.

@cisse21 cisse21 merged commit 7aeed3b into master Feb 27, 2023
@cisse21 cisse21 deleted the chore.processor-pickup-first_event_at branch February 27, 2023 11:01
@cisse21
Copy link
Member

cisse21 commented Feb 27, 2023

Hey @lvrach merged this without checking the comment. @achettyiitr will add the test in another PR sorry for the trouble

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.

None yet

3 participants