Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Laravel Scheduler/Queue Worker HEALTHCHECK Fails (Docs Bug?) #391

Copy link
Copy link
Closed
@tsterker

Description

@tsterker
Issue body actions

Steps To Reproduce

docker ps
docker inspect <container>

Outcome

What did you expect?

As per the docs it is mentioned that we are intentionally re-using the same app image:

Notice we're using the same my/laravel-app image for both the PHP and Queue services. This is a common practice to keep the image consistent.

So, I would expect that there is either

  • (A) A way to disable the stock healthcheck
  • (B) Documentation that we need to disable the health check when not running our app as HTTP service

What happened instead?

If followed the docs and got an unhealthy container.

Affected Docker Images

Tested with serversideup/php:8.3-unit-v3.2.0

Anything else?

Solution / Workaround

As a quick fix, we can simply disable the healthcheck:

  task:
    build:
      context: .
    command: ["php", "/var/www/html/artisan", "schedule:work"]
+   healthcheck: { test: ['NONE'] }
    volumes:
      - .:/var/www/html

I wonder if there are somewhat clean ways to introduce a dedicated healthcheck that could properly/cleanly determine if the queue worker is healthy.

Metadata

Metadata

Assignees

Labels

🐛 Bug: ConfirmedBugs that are able to be replicated.Bugs that are able to be replicated.📝 DocumentationItems that relate to documentation improvements.Items that relate to documentation improvements.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.