Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still job not found #362

Open
ujwaldhakal opened this issue Feb 25, 2018 · 4 comments
Open

Still job not found #362

ujwaldhakal opened this issue Feb 25, 2018 · 4 comments

Comments

@ujwaldhakal
Copy link

ujwaldhakal commented Feb 25, 2018

\Resque::setBackend('redis:6379'); \Resque::enqueue('convert','App\\Job',['foobar' => 'bar']); this is how i setup my job

`namespace App;
use App\Service\Log;
class Job
{
    public function perform()
    {
        // .. Run job
        $a = new Log();
        $a->info('yellow',['done']);
        dd('ad');
    }

}`

My job file

"autoload": { "psr-4": { "App\\": "app" }, "files": [ "app/Job.php",

my composer

Job{convert} | ID: 9fae4414fd91f0d01598298ba87e3211 | App\Job | [{"foobar":"bar"}]) failed: Could not find job class App\Job. Issue i got

@danhunsaker
Copy link
Contributor

How are you starting your worker(s)? And which version of PHP-Resque are you using?

@ujwaldhakal
Copy link
Author

VVERBOSE=1 QUEUE=* php vendor/chrisboulton/php-resque/resque.php
version 1.2

@danhunsaker
Copy link
Contributor

Upgrade to master, and change vendor/chrisboulton/php-resque/resque.php to vendor/bin/resque, then try again.

@ujwaldhakal
Copy link
Author

ujwaldhakal commented Feb 26, 2018

Thank you worked like a charms. Seems like this package hasnt been updated since 2nd mass extinction.

"require": { "chrisboulton/php-resque": "dev-master", }, final updated composer json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants