Signature
Parameters
The action to run. Can be:
- An
ActionInterfaceinstance - A class string of an Action class
- Any PHP callable (closure, function, invokable object)
Named arguments for the action’s run method. Values can be:
- Literal values (strings, integers, arrays, etc.)
variable()references for runtime variablesresponse()references to previous job outputs
Returns
A synchronous job that will block execution until complete.
Usage
With a closure
With an Action class
With a class string
Chaining jobs
Notes
- Synchronous jobs block execution until they complete
- Jobs run in sequence when they have dependencies
- Use
sync()for operations that must complete before other jobs can proceed - For non-blocking execution, use
async()instead