Skip to content

Job relevance ensurer not working properly #2

Open
@GianVag

Description

@GianVag

Hello,

I am using your package for notifications and is working properly.
Now I wanted to use the package for jobs but didn't have any success.

I am using Laravel 6 and dispatching jobs using TestJob::dispatch() on a database queue.
No matter what I tried the job still gets handled, so far I tried:

  1. Just returning false in the isRelevant function (job is still handled)
  2. Modifying the EnsureJobRelevance.php handle function to only return false (job is still handled)
  3. Logged the get_class($event->job) and gotten "Illuminate\Queue\Jobs\DatabaseJob"
  4. Logged the class_implements($event->job) and gotten "Illuminate\Contracts\Queue\Job" meaning the instanceof ShouldBeRelevantJob is false hence isRelevant() is not called.

Sorry if I am missing something
Best Regards
Vagelis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions