Bridge with symfony/console
Refer to the official documentation on Symfony’s website.
This bridge provides ways to interact with the library within a CLI command.
Launch Job command
The RunJobCommand can execute any job.
The command accepts 2 arguments:
the job name to execute
the job parameters for the
JobExecution(optional)
Examples:
bin/console yokai:batch:run import
bin/console yokai:batch:run export '{"toFile":"/path/to/file.xml"}'
See also
Launch job with an asynchronous command
The RunCommandJobLauncher execute jobs via an asynchronous symfony command.
The command called is yokai:batch:run, and the command will actually execute the job.
Additionally, the command will run with an output redirect (>>) to var/log/batch_execute.log.
See also
Setup JobExecution storage command
The SetupStorageCommand
can prepare required infrastructure for the configured JobExecution storage.
Usage:
bin/console yokai:batch:setup-storage
See also