Skip to content

Mysql error on failed job insert #28

@jusstinas

Description

@jusstinas

If connection argument is not passed to worker command, failed job insert to separate table is failing, because by generated entities connection field cannot be null.
I think this case it's logic to use default connection name.
Worst thing of this is that failed job is lost - job delete from regular jobs table is in a different transaction an run first. So it's deleted, another transaction with insert fails and it's lost.
Also after this error worker is running, but I think entity manager is closed and worker do nothing, because doesn't get any jobs from database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions