Skip to content

Conversation

amirhshokri
Copy link
Contributor

This PR adds enum support to Horizon job tags, allowing to use enums in tags() arrays.

Example:

class ProcessOrder implements ShouldQueue
{
    // ...
    
    public function tags(): array
    {
        return [
            Priority::HIGH,    
            Status::SHIPPED,
            'order:' . $this->order->id
        ];
    }
}

@amirhshokri amirhshokri marked this pull request as draft October 15, 2025 19:08
@amirhshokri amirhshokri marked this pull request as ready for review October 15, 2025 19:17
@taylorotwell
Copy link
Member

Tests failing.

@amirhshokri amirhshokri deleted the 5.x-add-enum-supoort-to-tags branch October 16, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants