Skip to content

Commit

Permalink
Docs on withoutOverlapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 26, 2015
1 parent c7d5330 commit 1193035
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions artisan.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ Let's look at a few more scheduling examples:
$schedule->command('foo')->saturdays();
$schedule->command('foo')->sundays();

### Prevent Jobs From Overlapping

By default, scheduled jobs will be run even if the previous instance of the job is still running. To prevent this, you may use the `withoutOverlapping` method:

$schedule->command('foo')->withoutOverlapping();

In this example, the `foo` command will be run every minute if it is not already running.

#### Limit The Environment The Jobs Should Run In

$schedule->command('foo')->monthly()->environments('production');
Expand Down

0 comments on commit 1193035

Please sign in to comment.