Commands


Introduction

Commands are any piece of code that Cronboard is able to execute as a scheduled task. Cronboard supports a number of object / class types and will auto-discover these as part of its recording process.

Here's a list of what can be discovered and made available to you:

  • Console commands: classes that extend Illuminate\Console\Command
  • Queue jobs: classes that implement Illuminate\Contracts\Queue\ShouldQueue
  • Invokable objects: classes that have a public function __invoke() method
  • Closures: any Closure object passed to Laravel's scheduler
  • Command line code executions: any piece of command line string passed to exec() calls in your console kernel

{warning} In some cases, like Closures you need to always provide a name() or description() in order them to be tracked properly. Failing to do so may result in unintended mixups between task executions if you have multiple Closure-based tasks defined.