FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

QueueManager Fails when Multiple Queue Configs Contain uniqueCache Key · Issue #113 · cakephp/queue · GitHub

/ queue Public

QueueManager Fails when Multiple Queue Configs Contain uniqueCache Key #113

Description

When multiple queue configs have the uniqueCache key QueueManager fails to load with the following error:

BadMethodCallException: Cannot reconfigure existing key "Cake/Queue.queueUnique"

/code/vendor/cakephp/cakephp/src/Core/StaticConfigTrait.php:91
/code/src/QueueManager.php:130

The following test can be used to trigger the error:

public function testMultipleUniqueCache()
{
    QueueManager::setConfig('test', [
        'url' => 'null:',
        'uniqueCache' => [
            'engine' => 'File',
        ],
    ]);
    QueueManager::setConfig('test2', [
        'url' => 'null:',
        'uniqueCache' => [
            'engine' => 'File',
        ],
    ]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL