Skip to content

Parallel queue processing doesn't work #268

@unicoder88

Description

@unicoder88

Hi @BlackbitDevs @Jan-Walther-Basilicom !

DataDirector version 3.9.36 - latest at this moment.

We're struggling with queue not picking up new dataports in queue while very-long-running dataport is still processing.

Steps to reproduce:

  1. Put to queue first long running job

    $queue = new \Blackbit\DataDirectorBundle\model\Queue();
    $queue->create([
        'command' => 'dd:complete 8',
        'triggered_by' => 'Result callback function of command ...',
    ]);
  2. Put to queue second job

    $queue = new \Blackbit\DataDirectorBundle\model\Queue();
    $queue->create([
        'command' => 'dd:complete 258',
        'triggered_by' => 'Result callback function of command ...'
    ]);

I'm running queue in debug right now, and I can clearly see that while first queue item process is running, queue array is not rebuilt at all:

XDEBUG_TRIGGER=PHPSTORM bin/console data-director:process-queue -v
Image

Demo video with issue being reproduced -

data-director.queue.demo.mp4

Because our dataports can run as long as 24 hours, everything else stalls, and this is hurting business a lot.

Please review :)

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