Skip to content

Queue jobs executed in CLI does not persist repository changes unless executed isolated #44

Open
@sorenmalling

Description

@sorenmalling

Behavior

I'm having a job with a execute() method like this

$transfer = new Transfer(...);
$this->transferRepository->add($transfer);
return true;

The new transfer object is not persisted to the database table when the message is finished

Expected behavior

Similar to other CLI command, I expected the new $transfer object to be persisted

Proposed change

Have a signal/slot that call the persistAll on the persistenceManager once a messageFinished signal is sent

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