Welcome Guest, Not a member yet? Register   Sign In
Error / Running Codeigniter Queue
#1

Hi
I Created a job class Email as in the documentation
and tried running queue using this command

Code:
php spark queue:work emails

then i got this error:

Code:
CodeIgniter v4.5.1 Command Line Tool - Server Time: 2024-06-01 04:31:19 UTC+00:00

Listening for the jobs with the queue: emails

Starting a new job: email, with ID: 11
It took: 0.0004 sec

[Error]
Call to undefined method Config\Email::getTries()
at VENDORPATH\codeigniter4\queue\src\Commands\QueueWork.php:251

Backtrace:
1 VENDORPATH\codeigniter4\queue\src\Commands\QueueWork.php:175
CodeIgniter\Queue\Commands\QueueWork()->handleWork(Object(CodeIgniter\Queue\Entities\QueueJob), Object(Config\Queue), null, null)

2 SYSTEMPATH\CLI\Commands.php:70
CodeIgniter\Queue\Commands\QueueWork()->run([])

3 SYSTEMPATH\CLI\Console.php:48
CodeIgniter\CLI\Commands()->run('queue:work', [...])

4 SYSTEMPATH\Boot.php:338
CodeIgniter\CLI\Console()->run()

5 SYSTEMPATH\Boot.php:104
CodeIgniter\Boot::runCommand(Object(CodeIgniter\CLI\Console))

6 ROOTPATH\spark:84
CodeIgniter\Boot::bootSpark(Object(Config\Paths))

what's wrong?
Reply
#2

The error clearly says that there is no method
Simple CI 4 project for beginners codeigniter-expenses
Reply
#3

Thank you @ozornick for the answer.

I found my mistake.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB