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

Hotfix: Avoid duplicate combine jobs #3412

Merged
merged 1 commit into from Nov 26, 2018

Conversation

rjmackay
Copy link
Contributor

@rjmackay rjmackay commented Nov 26, 2018

This pull request makes the following changes:

  • fix(ExportPosts): Queue combine job at start, rather than when batches finish

    Queue the CombineExportedPostBatchesJob job at the start, and let
    it keep retrying. Rather than queuing when batches finish and ending
    up with multiple combine jobs running at once

Test checklist:

  • composer test
  • I certify that I ran my checklist

Ping @ushahidi/platform

…s finish

Queue the CombineExportedPostBatchesJob job at the start, and let
it keep retrying. Rather than queuing when batches finish and ending
up with multiple combine jobs running at once.
@rjmackay rjmackay requested a review from rowasc November 26, 2018 03:47
@coveralls
Copy link

Coverage Status

Coverage remained the same at 20.538% when pulling 74e32eb on hotfix/avoid-duplicate-combine-jobs into 4b340fa on master.

Copy link
Contributor

@rowasc rowasc left a comment

Choose a reason for hiding this comment

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

Looks ok, had a question mostly tto learn


// Queue combine job in 1 min
dispatch(
(new CombineExportedPostBatchesJob($this->jobId))
Copy link
Contributor

Choose a reason for hiding this comment

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

so it does the first try after 1 minute, but if not done, it'll just retry until it can do it, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It'll queue it to run in 1 minute. Then the CombineExportedPostBatchesJob checks if all the batches are done, and if they're not retries in 5 mins.

@rjmackay rjmackay merged commit 096335f into master Nov 26, 2018
@tuxpiper tuxpiper deleted the hotfix/avoid-duplicate-combine-jobs branch March 24, 2021 20:34
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.

None yet

3 participants