1. Laravel Horizon - Monitor Redis Queue Jobs

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 52

  • @MrMacphist0
    @MrMacphist0 4 года назад +16

    nice video.
    Note that the failling jobs probably have nothing to do with the queue/predis/horizon: It seems to me that you are on a free Mailtrap plan which is ratelimited to two messages per 10sec.

    • @adnanshoukat2300
      @adnanshoukat2300 2 года назад

      You are right. I was also thinking about why jobs are failing. Now I get it.

    • @mnoquiao
      @mnoquiao Год назад

      correct.

    • @matthewghardy
      @matthewghardy Месяц назад

      Made for a nice example scenario when things "go wrong"

  • @mohamadharis9489
    @mohamadharis9489 4 месяца назад

    why i got this issue 403
    Forbidden???

  • @dishantarora4349
    @dishantarora4349 4 года назад

    Please help!!
    Getting below error while using predis queue
    Predis\Connection\ConnectionException
    No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379]
    Thanks in advance

  • @priyankpatel2611
    @priyankpatel2611 3 года назад

    Hey sarthak, have you found solution to process jobs without failure,
    I'm looking for solutions, can please post part 2 if you found any solution.

    • @realtebo
      @realtebo 3 года назад

      failure is not due to laravel or horizon. If the php code fails, the job fails.

  • @EduCodigosPro
    @EduCodigosPro 2 года назад

    It starts at 5:40 😅

  • @michabbb
    @michabbb 3 года назад +1

    please learn to speak a correct "th", please... !

    • @realtebo
      @realtebo 3 года назад +2

      I don't appreciated your comment. English native speaking people should try to understand like we do when you came in our country and try to speak our language; we do not stress strangers about pronunciations !

    • @realtebo
      @realtebo 3 года назад +1

      And yes, my english grammar is near to an horror film

  • @kuldeepsharma-vx4gm
    @kuldeepsharma-vx4gm 9 месяцев назад

    protected function gate(): void
    {
    Gate::define('viewHorizon', function ($user) {
    return in_array($user->number, [
    '1111111111'
    ]);
    });
    }
    }
    i try this and when i login from another number i can still access the /horizon
    can you please help me...

  • @kinvain
    @kinvain 2 месяца назад +1

    It was exiting to see which errors you get. 🙄

    • @Bitfumes
      @Bitfumes  2 месяца назад

      hahah yeahh it sometimes get error

  • @aizazaziz5636
    @aizazaziz5636 4 года назад +3

    when i run php artisan horizon it gives Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined function Laravel\Horizon\Console\pcntl_async_signals()

    • @vritikamalhotra4912
      @vritikamalhotra4912 3 года назад

      Hey did you get the solution?? I am still struggling

    • @QaziHamayun
      @QaziHamayun 3 года назад

      you must need to install/enable pcntl plugin in php.

    • @realtebo
      @realtebo 3 года назад +1

      horizon requires pcntl that is not available under windows. If not using windows, simply install pcntl extension to your php and enable it

  • @vritikamalhotra4912
    @vritikamalhotra4912 3 года назад +1

    How to solve the issue of pcntl on windows . Please help :)

    • @realtebo
      @realtebo 3 года назад +1

      There is absolutely no solution to this. Windows and php are not so good friends

  • @enlightenedwithkanika
    @enlightenedwithkanika 3 года назад

    if u get Error : Connection refused [tcp://127.0.0.1:6379]
    Follow the steps in linux :
    1> sudo apt-get update
    2> sudo apt-get install redis-server
    3> sudo systemctl restart redis.service

  • @shaikhfoysal4426
    @shaikhfoysal4426 3 года назад +1

    Thanks Brother.

  • @MrAtomUniverse
    @MrAtomUniverse 4 года назад

    Hi,
    Can I launch multiple "VPS" of the same copy of laravel so I can "load balance" the work load"
    I'm currently running on only 1 vps but it's overloaded , I was thinking of using queue and launch more of the same copy of laravel (snapshot , launch)
    The worker should take from the "main queue" and update the database accordingly? Is that a standard practice to launch more workers?

  • @UpTballA
    @UpTballA 4 года назад

    LARAVEL HORIZON DOES NOT WORK ON WINDOWS
    STOP TRYING~!, dualboot and install ubuntu if you want, you won't succeed this on windows.
    even if you get ext-pcntl to work, still need ext-posix also.
    newer redis versions are not easy to install on windows
    if you need redis on windows
    learn docker and use
    docker run --name rdb -p 6379:6379 redis
    docker exec -it rdb redis-cli
    php-redis also cannot be installed on windows
    you can use predis but thats NOT enough to use horizon.
    good luck friends

    • @warrenarnold
      @warrenarnold Год назад

      yeap this is a good solution, however used to run the horizon directly on windows, just without it on background with a supervisor, my php artisan horizon used to work however it suddenly stopped

  • @yidug.abraha9428
    @yidug.abraha9428 3 года назад

    Hello sir does horizon have an api route? i wanted to make a custom ui and integrate it with my admin panel. my admin panel is a separate vuejs project.

  • @shamir-imtiaz
    @shamir-imtiaz 4 года назад +1

    By the way , why jobs are failed?so this is not safe for production?

    • @mohamedshuaau632
      @mohamedshuaau632 4 года назад +3

      Jobs are failing because of mailtrap limitation. not because of horizon or redis

    • @shamir-imtiaz
      @shamir-imtiaz 4 года назад

      @@mohamedshuaau632 oh okk got it...thanks

  • @elliot-robot
    @elliot-robot 2 года назад

    Can anyone tell me which font is this in VScode ?

  • @HelenaDuGraus
    @HelenaDuGraus 4 года назад

    do not sending the mail to my mailtrap, even the code works normally

  • @SheikhMobin
    @SheikhMobin 4 года назад

    Great job. I'm also trying to install horizon for my lumen 7.x project. Please explain how to do this?

  • @pareshgc1816
    @pareshgc1816 3 года назад

    Hi, In my project with horizon job was completed, but dont sent email and also that not return any error. i am using smtp for sending mail. please suggest me any solution.

    • @realtebo
      @realtebo 3 года назад

      test sending email out of job. If job executed, mail was sent. If mail was not recevied the problem is not related to job and laravel and horizon and redis. Check what happens after sending an email in a controller, without using jobs.

  • @namachivaaya
    @namachivaaya 3 года назад

    Hi... Thank you for sharing the nice tutorial. I used redis cache in my application but it really very slow compare to file cache driver. Is there any thing to update. Could you please please suggest to speed up the application when using redis... Thank you

    • @QaziHamayun
      @QaziHamayun 3 года назад +1

      @Bhaskar I am using Redis since 2019, and I never feel it slow. there must be some configuration and server resources issue in case of speed

  • @WhiteSiroi
    @WhiteSiroi Год назад

    thank you, very helpful

  • @elliot-robot
    @elliot-robot 2 года назад

    Which font is this in IDE ?

  • @mansoorsajedi7316
    @mansoorsajedi7316 3 года назад

    very well friend. you are awesome

  • @DevPremier
    @DevPremier 4 года назад

    Nice tutorial. Btw, I really like your theme. asking silly, can you name it?

    • @Bitfumes
      @Bitfumes  4 года назад

      Its material theme with operator mono font

  • @kaushalkoladiya2399
    @kaushalkoladiya2399 4 года назад

    I can't able to install horizon in my environment
    Why this is happening?

    • @Bitfumes
      @Bitfumes  4 года назад

      what error you are getting

    • @kaushalkoladiya2399
      @kaushalkoladiya2399 4 года назад +1

      @@Bitfumes - laravel/horizon v4.0.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.

  • @patchido
    @patchido 4 года назад

    Why are the jobs being failed?

    • @realtebo
      @realtebo 3 года назад +1

      because mailtrap is rate limited to only 3 mail in a span of 10 seconds