Giter Club home page Giter Club logo

Comments (17)

mdurao avatar mdurao commented on May 12, 2024 2

As @jpmurray suggested, i'm closing this issue.

from horizon.

furey avatar furey commented on May 12, 2024 2

Hi @TJSoler,

I just stumbled across the same issue while deploying a site via Forge (couldn't see the Horizon Dashboard's "Current Workload" list or any supervisor instances).

Turned out I was using an APP_ENV value of "staging", and therefore /config/horizon.php was missing its required "environments.[APP_ENV]" key/value.

I added the missing "environments.staging" key/value (duplicated my "environments.local" key/value), redeployed my Forge site, and the issue was resolved.

Cheers!

from horizon.

hocza avatar hocza commented on May 12, 2024 1

@bkuhl Well you still need to keep it running with something like supervisord.

However on Forge you can only run workers with supervisord not horizon itself. :)

from horizon.

hocza avatar hocza commented on May 12, 2024 1

Quote from forge.laravel.com

Dead Simple Queues
Easily start and manage supervised Laravel Queue workers directly from Forge. No more manual Supervisor configuration.

@jbrooksuk Yet you are suggesting manual configuration. ;)

The question was about Forge, that (when) will It get updated to support it from the web panel...

Not how to do it. I know how to do it. I guess @mdurao also knows how to do it.

from horizon.

mdurao avatar mdurao commented on May 12, 2024 1

@hocza bingo!

from horizon.

themsaid avatar themsaid commented on May 12, 2024 1

@hocza what do you think is wrong with @jpmurray comment?

from horizon.

TJSoler avatar TJSoler commented on May 12, 2024 1

Once you configure horizon as a daemon on your site. Should the workers from the config/horizon.php start automatically as they do on local?

screen shot 2017-07-27 at 19 32 29

screen shot 2017-07-27 at 19 34 38

Or do we need to configure anything else for horizon to work?

I'm using a base php 5.6 machine upgraded to php 7.1 through the forge admin panel, if it's of any use.

from horizon.

jpmurray avatar jpmurray commented on May 12, 2024 1

@mdurao I see what you want. Honestly, it seems more of a cosmetic change in Forge's UI that anything else. Could they also add a daemon tab to the sites? Sure why not. But you'd probably still need to put the whole path to your artisan file anyway.

I'm not saying having a button somewhere to just "click and activate horizon on this site" wouldn't be cool (hey, I'd click that button all the time!). I'm just saying I don't think it's necessary, since we can use it perfectly already. And well, we probably all are going to use Horizon, but not everybody will. The queue interface needs to stay the same so people working with SQS or whatnot can still use the other commands...

And @hocza, yes I do. And The solution isn't at all odd, it works! Supervisor is used to monitor Horizon's process, and the way to use Supervisor outside regular queues command in Forge is going to the daemon tab. Seems pretty logical to me.

Anyway, we all just want to use Horizon's better, this is cool. But, I'm going to suggest( @themsaid ) that this issue should be closed. This isn't regarding Horizon, it should not be in its issues, this is a request for a Forge feature, we should just campaign via Forge's support for a change in the UI if we want to.

from horizon.

danyellnoe avatar danyellnoe commented on May 12, 2024 1

@furey Thank you bud! Wasted a few hours trying to figure out what was going on and this was my issue as well.

For anybody else who comes across this, only production and local are defined in /config/horizon.php by default, so if you deploy to a server where your APP_ENV is anything other than these two strings, make sure you update the config file accordingly!

from horizon.

hocza avatar hocza commented on May 12, 2024

I just had the same thought! :)

👍

from horizon.

bkuhl avatar bkuhl commented on May 12, 2024

It appears as though horizon is intended to be added to the application you're deploying if I'm understanding this correctly. So if it were added to Forge, it'd be Taylor adding it to monitor his own workers. You'd still need to add it to your application.

from horizon.

jpmurray avatar jpmurray commented on May 12, 2024

Run it as a daemon on the server?

from horizon.

jbrooksuk avatar jbrooksuk commented on May 12, 2024

You run php artisan horizon under a Supervisor process then part of the deployment strategy is to call php artisan horizon:terminate right at the end (replacing where you would call php artisan queue:restart, which Supervisor will then start again.

from horizon.

jpmurray avatar jpmurray commented on May 12, 2024

I'm still honestly curious as why running a Daemon for Horizon isn't good for you guys? You can have php artisan:horizon running, and call the terminate method in your deployment scripts.

To me, that's pretty much how you should be using it with Forge, I'm not sure what you're expecting more?

from horizon.

hocza avatar hocza commented on May 12, 2024

@jpmurray do you have a Forge account?

Have you ever setup a queue worker with Forge?

from horizon.

mdurao avatar mdurao commented on May 12, 2024

To me, that's pretty much how you should be using it with Forge, I'm not sure what you're expecting more?

I'm not expecting anything more, I was just wondering if the Queues would be updated or added this functionality in the forge interface.

If it's supposed to be running as a Daemon, in the Server tab, instead of running in the Site tab... fine by me.

from horizon.

hocza avatar hocza commented on May 12, 2024

@themsaid nothing. I just realized what he was suggesting by reading @mdurao 's last comment.

(but still an odd solution compared to what cool thing we have at the moment)

from horizon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.