Laravel queues do not work with Algolia

I found that Algolia has problems with Laravel work queues, when switching in filesystem to database to use dispatch () method the search stops working.

My job works fine on localhost

public $pathGaleria;
public $ruta;

 * Create a new job instance.
 * @return void
public function __construct($pathGaleria, $ruta)
    $this->pathGaleria = $pathGaleria;
    $this->ruta = $ruta;

 * Execute the job.
 * @return void
public function handle()
    $img = $this->pathGaleria;
    $rut = $this->ruta;
    //make recibe la imagen
    ->resize(800, null, function ($constraint) {

Does anyone know what I could do to fix this inconvenient functionality? Thanks a lot

Hi there!

Could you please provide some more context into what exactly is and isn’t working? It’s difficult to deduct from the code in your job what the expected behavior is, and what the actual behavior is.

Information that would be helpful:

  • PHP, Laravel, Scout and Scout Extended versions
  • Full code of your job
  • Information on when and how you execute this job
    • What is the expected behavior?
    • What is the actual behavior?
    • What about the search is breaking?

Thank you in advance, I look forward to your reply :grinning_face_with_smiling_eyes: