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] Added between and unlessBetween to Scheduler #15216

Merged
merged 2 commits into from
Sep 2, 2016
Merged

[5.3] Added between and unlessBetween to Scheduler #15216

merged 2 commits into from
Sep 2, 2016

Conversation

JacobBennett
Copy link
Contributor

This allows you to run commands only between certain times of the day or exclude certain times of day.

The current solution makes use of the when method and is showed below.

image

with the new between method, you could substitute the entire when with between("8:00", "17:00").

the unlessBetween function handles instances where you want a job to be excluded from running for certain periods of time.

Tests written and passing ✅

@taylorotwell taylorotwell merged commit bfccd31 into laravel:5.3 Sep 2, 2016
JacobBennett added a commit to JacobBennett/docs that referenced this pull request Sep 2, 2016
Add examples and some additional details for [this feature](laravel/framework#15216)
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.

2 participants