Closed bakura10 closed 10 years ago
@basz I'll let you update Doctrine to take advantage of this
I don't think SlmQueueDoctrine nees to be updated?
You are currently not taking advantage of the returned states.
ah right... would it be an idea to make the signature
formatOutput($queueName, array $messages = [], $action = 'processing')
{
...
return sprintf(
"Finished %s worker for queue '%s':\n%s\n",
$action,
$queueName,
$messages
);
}
Then that method can be reused by te various actions
uhm, actually there are no states returned as the recoverAction does not use a worker even when the Controller is called DoctrineWorkerController. It talks directly to the queue. I think it is okay for now.
SQS worker for instance overrides the "processAction" to use its specific options. This allows to reuse it in SlmQueueSqs.
ping @basz