Skip to content

Commit

Permalink
Merge pull request #15 from 21TORR/task-key-in-queue
Browse files Browse the repository at this point in the history
Display `Task` key in task-manager:queue
  • Loading branch information
apfelbox authored Jun 4, 2024
2 parents eafd2c4 + 06592eb commit 84fd736
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.3.1
=====

* (improvement) Display `Task`'s key in `task-manager:queue` overview for easier identification.


1.3.0
=====

Expand Down
3 changes: 2 additions & 1 deletion src/Command/QueueTasksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ private function formatTaskLabel (Task $task) : string
if (null !== $task->group)
{
return \sprintf(
"<fg=blue>%s</>: %s",
"<fg=blue>%s</>: %s (<fg=yellow>%s</>)",
$task->group,
$task->label,
$task->key,
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/Receiver/ReceiverHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Torr\TaskManager\Receiver;

use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;
use Symfony\Component\DependencyInjection\Attribute\AutowireIterator;
use Symfony\Component\Messenger\Transport\Sync\SyncTransport;
use Symfony\Component\Messenger\Transport\TransportInterface;

Expand All @@ -15,7 +15,7 @@ final class ReceiverHelper
*/
public function __construct (
/** @var iterable<TransportInterface> */
#[TaggedIterator("messenger.receiver")]
#[AutowireIterator(tag: "messenger.receiver")]
private readonly iterable $transports,
) {}

Expand Down

0 comments on commit 84fd736

Please sign in to comment.