title: How to set timeout for Laravel artisan
body: <p>How to set timeout for an artisan job? And when time out the job will be killed.</p>
  <p>I'm using Laravel 5.0 on my application.I scheduled some artisan jobs every minute in app/Console/Kernel.php.
  When I grep those jobs</p>
  <pre><code>ps -ef | grep artisan
  </code></pre>
  <p>It seems that every job is running in separate process.</p>
  <blockquote>
  <p>root     23322     1  0 13:44 ?        00:00:00 xxx/php-5.5.7/bin/php artisan fetchTopic 0 10 1</p>
  <p>root     23324     1  0 13:44 ?        00:00:00 xxx/php-5.5.7/bin/php artisan fetchTopic 0 10 2</p>
  <p>root     23326     1  0 13:44 ?        00:00:00 xxx/php-5.5.7/bin/php artisan fetchComment</p>
  </blockquote>
  <p>And when one job finish its task, the process will be killed automatically.
  But it is strange that some of the processes are not killed normally. And over time, more and more strange processes are permanent which lead to CPU 100%. So I want to set an timeout for the artisan job, when time out the job will be killed automatically.</p>