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

[5.3] Add HourlyAt() option for scheduled events #17168

Merged
merged 6 commits into from
Jan 6, 2017
Merged

[5.3] Add HourlyAt() option for scheduled events #17168

merged 6 commits into from
Jan 6, 2017

Conversation

laurencei
Copy link
Contributor

This is a simple extension of the hourly function to allow for an minute offset.

Basically if you have a few scheduled events you want to run hourly - it is nice to be able to offset them from 0 to a different 'minute' - so they dont all run simultaneously at :00 and put unnecessary load on the server.

@@ -345,6 +345,17 @@ public function hourly()
}

/**
* Schedule the event to run hourly at a given offset in the hour.
*
* @param string $offset
Copy link
Member

Choose a reason for hiding this comment

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

string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah - good pickup. Fixed now

@GrahamCampbell GrahamCampbell changed the title Add HourlyAt() option for scheduled events [5.3] Add HourlyAt() option for scheduled events Jan 5, 2017
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