Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Beanstalkd retrying non retryable job #525

Open
@BenasPaulikas

Description

@BenasPaulikas
class DummyJob extends BaseObject implements RetryableJobInterface{    public function execute($queue): void    {        sleep(5);    }    public function getTtr(): int    {        return 1;    }    public function canRetry($attempt, $error): bool    {        return false;    }}

If I push such job to queue I expect it to fail due Ttr and not to be retried.
However due how beanstalkd works it just puts job back to queue many times ignoring canRetry()

Any fix. Or should I use different driver?

I use beanstalkd because mysql driver can't handle the load :D


P.S. this is related to

2025-03-15 09:09:11 [-][-][-][error][Pheanstalk\Exception\ServerException] Pheanstalk\Exception\ServerException: Cannot delete job 754021: NOT_FOUND
This issue also produces such errors.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp