- A job is executed as a taks and a task could run for many orders.
- Each order will be processed by the methods spooler_process_before(), spooler_process() (one ore more times) and spooler_process_after().
- The object spooler_task.order available in the method spooler_process_after() points to the order instance currently owned by the task.
It is NOT available in spooler_task_after(), because no order is running for the current task any more.
It makes no difference if you run a shell job or an API job - this behaviour is the same.