Skip to content

Conversation

@pereirinha
Copy link
Contributor

This PR introduces 2 changes.
First, it delays the resume of the queue to the shutdown.
Secondly, it falls back to cron job to ensure that the queue resumes.

@pereirinha pereirinha requested a review from DavidCramer May 26, 2020 17:12
$queue = $this->get_queue();


if ( $now - $queue['last_update'] > $this->cron_start_offset ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@pereirinha - Shouldn't we check to see if the queue is running as well, before starting it again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@DavidCramer Good catch. Thank you.

@pereirinha
Copy link
Contributor Author

@DavidCramer

Your feedback was addressed, and it's ready for you to circle back.

Copy link
Contributor

@DavidCramer DavidCramer left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@DavidCramer DavidCramer merged commit 60af7ff into develop May 29, 2020
@pereirinha pereirinha deleted the fix/CLOUD-425 branch June 5, 2020 11:32
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