{"id":16448,"date":"2022-02-17T11:55:25","date_gmt":"2022-02-17T10:55:25","guid":{"rendered":"https:\/\/supporttest.hemsida.eu\/?post_type=ht_kb&#038;p=16448"},"modified":"2024-10-14T14:47:26","modified_gmt":"2024-10-14T13:47:26","slug":"how-do-i-manage-queue-workers-via-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/supporttest.hemsida.eu\/en\/artikel\/how-do-i-manage-queue-workers-via-cpanel\/","title":{"rendered":"How do I manage queue workers via cPanel?"},"content":{"rendered":"\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">The feature for managing queue workers is available on our <a href=\"https:\/\/www.oderland.com\/web-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Premium and Deluxe <\/a><a href=\"https:\/\/www.oderland.com\/web-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">web hosting accounts<\/a><a href=\"https:\/\/www.oderland.com\/solutions\/agency\/\" target=\"_blank\" rel=\"noreferrer noopener\">, Agency services<\/a>, and <a href=\"https:\/\/www.oderland.com\/servers\/\" target=\"_blank\" rel=\"noreferrer noopener\">Managed Servers<\/a>. If you currently have a Standard web hosting account, you need to <a href=\"https:\/\/supporttest.hemsida.eu\/en\/artikel\/how-do-i-upgrade-downgrade-my-web-hosting-account\/\" data-type=\"ht_kb\" data-id=\"13573\" target=\"_blank\" rel=\"noreferrer noopener\">upgrade<\/a> to gain access to the feature.<\/p>\n\n\n\n<p>If you have a website that uses, for example, the Laravel framework, you may need to set up so-called workers for managing automatic jobs with Laravel Queue or Laravel Horizon. Symfony Messenger and\/or Craft CMS Worker are also supported. We have developed an extension to cPanel where you can set up these workers yourself, and this guide describes how to do it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"access-settings-for-workers\">Access settings for workers<\/h2>\n\n\n\n<p>To access the settings for your workers, do as follows:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Begin by <a rel=\"noreferrer noopener\" href=\"https:\/\/supporttest.hemsida.eu\/en\/artikel\/how-do-i-login-to-cpanel\/\" data-type=\"ht_kb\" data-id=\"4236\" target=\"_blank\">logging on<\/a> to cPanel.<\/li>\n\n\n\n<li>Click the icon <code>Queue Workers<\/code> under <code>Advanced<\/code>.<br><a href=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_icon_queue_workers.png\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"313\" class=\"wp-image-23606\" style=\"width: 680px;\" src=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_icon_queue_workers.png\" alt=\"\" srcset=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_icon_queue_workers.png 680w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_icon_queue_workers-300x138.png 300w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_icon_queue_workers-50x23.png 50w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_icon_queue_workers-60x28.png 60w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_icon_queue_workers-100x46.png 100w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/li>\n\n\n\n<li>You will now be able to configure up to two queue workers, for example one for your production environment, and one for staging\/development.<br><a href=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1226\" height=\"413\" class=\"wp-image-23610\" style=\"width: 1226px;\" src=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview.png\" alt=\"\" srcset=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview.png 1226w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview-300x101.png 300w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview-1024x345.png 1024w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview-768x259.png 768w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview-50x17.png 50w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview-60x20.png 60w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_overview-100x34.png 100w\" sizes=\"auto, (max-width: 1226px) 100vw, 1226px\" \/><\/a><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"managing-workers\">Managing workers<\/h2>\n\n\n\n<p>Once you accessed the settings for your workers (as described <a href=\"#accessing-settings-for-workers\">above<\/a>), you have the following configurable options (settings for production and for staging\/development are set up in the same manner):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1154\" height=\"93\" src=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details.png\" alt=\"\" class=\"wp-image-23614\" srcset=\"https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details.png 1154w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details-300x24.png 300w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details-1024x83.png 1024w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details-768x62.png 768w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details-50x4.png 50w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details-60x5.png 60w, https:\/\/supporttest.hemsida.eu\/wp-content\/uploads\/2022\/02\/cpanel_queue_workers_details-100x8.png 100w\" sizes=\"auto, (max-width: 1154px) 100vw, 1154px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Worker number:<\/strong> You can have up to two workers per cPanel account. This is the identifier for them.<\/li>\n\n\n\n<li><strong>Status:<\/strong> Here you&#8217;ll see whether or not the worker is active.<\/li>\n\n\n\n<li><strong>Type:<\/strong> What type of worker you&#8217;ve set up (Laravel Horizon, Laravel Queue, Symfony Messenger, or Craft CMS Worker).<\/li>\n\n\n\n<li><strong>Application executor path:<\/strong> The path to, for example, the project&#8217;s artisan file.<\/li>\n\n\n\n<li><strong>Actions:<\/strong> Here you can <code>Start<\/code> or <code>Stop<\/code> your worker.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">You can control a worker via <a href=\"https:\/\/supporttest.hemsida.eu\/en\/artikel\/how-do-i-connect-to-my-web-hosting-account-using-ssh\/\" data-type=\"ht_kb\" data-id=\"4832\" target=\"_blank\" rel=\"noreferrer noopener\">SSH<\/a> if you&#8217;d like. This is done with the following:<br><br><code>uapi QueueWorkers update action=start|stop|restart [worker_number=0|1]<\/code><br><br>Choose between start, stop and restart, and enter the number for your worker (0 or 1).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a website that uses, for example, the Laravel framework, you may need to set up so-called workers for managing automatic jobs with Laravel Queue or Laravel Horizon. Symfony Messenger and\/or Craft CMS Worker are also supported. We have developed an extension to cPanel where you can set&#8230;<\/p>\n","protected":false},"author":12,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"ht-kb-category":[213],"ht-kb-tag":[],"class_list":["post-16448","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-developer-tools"],"acf":[],"_links":{"self":[{"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/ht-kb\/16448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/comments?post=16448"}],"version-history":[{"count":18,"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/ht-kb\/16448\/revisions"}],"predecessor-version":[{"id":23618,"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/ht-kb\/16448\/revisions\/23618"}],"wp:attachment":[{"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/media?parent=16448"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/ht-kb-category?post=16448"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/supporttest.hemsida.eu\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=16448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}