nahid's avatar
Level 1

Getting MaxAttemptsExceedException when uploading file in a Job Queue

I am trying to upload a file to S3 using a job queue, but I keep getting a MaxAttemptsExceedException error. I have tried increasing the number of retries in the job queue, but it doesn't seem to help. It works fine in sync but when I changed it to Redis queue, it threw an error. Has anyone else encountered this issue and found a solution?

The file size is too small, it takes milliseconds if I run without a queue.

Here is my Queue config

        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
            'queue' => env('REDIS_QUEUE', 'default'),
            'retry_after' => 90,
            'block_for' => null,
            'after_commit' => false,
        ],
0 likes
3 replies
nahid's avatar
Level 1

@tisuchi The issue is not about Redis, Redis is working fine. That issue occurs when I upload a file to the S3 server inside the Queue.

Please or to participate in this conversation.