Skip to content

Cache Configuration for FlowPackJobQueueCommon_MessageCache has to be set #2

@paxuclus

Description

@paxuclus

The Flowpack.JobQueue.Common package does not supply configuration for the backend of FlowPackJobQueueCommon_MessageCache: https://github.com/Flowpack/jobqueue-common/blob/master/Configuration/Caches.yaml#L1

Caches can be configured without a backend. They will fall back to SimpleFileBackend or FileBackend - not sure which ohne.

If the FlowPackJobQueueCommon_MessageCache does not have an explicit backend set, the fastrabbit process will fail:

Notice: Undefined index: backend in /Packages/Application/Netlogix.JobQueue.FastRabbit/Classes/Cache/CacheFactory.php on line 19

Notice: Undefined index: backendOptions in /Packages/Application/Netlogix.JobQueue.FastRabbit/Classes/Cache/CacheFactory.php on line 20

Fatal error: Uncaught TypeError: Argument 3 passed to Neos\Flow\Cache\CacheFactory::create() must be of the type string, null given, called in /Packages/Application/Netlogix.JobQueue.FastRabbit/Classes/Cache/CacheFactory.php on line 29

When setting a backend and backendOptions for the cache, the process runs as expected:

FlowPackJobQueueCommon_MessageCache:
  backend: Neos\Cache\Backend\RedisBackend
  backendOptions:
    hostname: '%env:REDIS_HOST%'
    database: 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions