thesimons's avatar

Does laravel store jobs in any kind of cache somewhere?

Hello,

Does laravel have any kind of cache for jobs? I have changed the code of my job and somehow the app executes the code of the old job. If the file is removed (or renamed) the dispatch for this job returns a job not found error.

I have made sure that the file on the server has changed and it did.

In 24 years it's the first time that something like that happens.

I have also created a route/controller to test out the

public function test()
{
        ProcessVideoJob::dispatch('hello')->onQueue('video_encoding');
    }

and

But it magically returns an error because he execute the old code (that was about processing the video). Locally the file has changed and I made sure that. On the server the file has changed and I made use of that as well.

I don't use any kind of cache on the server.

Thanks, Simon

0 likes
3 replies
thesimons's avatar

@tykus Thanks a ton for your answer! I wasted two hours of my life but it could have been worse.

ianflanagan1's avatar

@thesimons In development you can use php artisan queue:listen to automatically reset the worker on code updates

Please or to participate in this conversation.