Skip to content

Conversation

kevinsimard
Copy link
Contributor

// From: Illuminate\Console\Scheduling\CallbackEvent

/**
 * Run the given event.
 *
 * @param  \Illuminate\Contracts\Container\Container  $container
 * @return mixed
 *
 * @throws \Exception
 */
public function run(Container $container)
{
    if ($this->description) {
        touch($this->mutexPath());
    }
    ...

/**
 * Get the mutex path for the scheduled command.
 *
 * @return string
 */
protected function mutexPath()
{
    return storage_path('framework/schedule-'.sha1($this->description));
}

@kevinsimard
Copy link
Contributor Author

@taylorotwell ping

taylorotwell added a commit that referenced this pull request Mar 18, 2016
@taylorotwell taylorotwell merged commit 80240e9 into laravel:master Mar 18, 2016
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