There are two problems with the introduction of the ?int type of jobs:
We require each job to finish with a return .. statement. This really is no improvement.
There is no possibility to communicate anything more than the result. We rather use Exceptions for those cases, and allow for more metadata using them. Much like SlmQueueDoctrine does this.
This PR removes the status code definition as a first step.
We can release this in a minor release, because SlmQueueDoctrine or other users can still run implement the JobInterfacewith the more strict return type ?int.
There are two problems with the introduction of the
?int
type of jobs:return ..
statement. This really is no improvement.This PR removes the status code definition as a first step.
We can release this in a minor release, because SlmQueueDoctrine or other users can still run implement the
JobInterface
with the more strict return type?int
.