mojolicious / minion

:octopus: Perl high performance job queue

Home Page:https://metacpan.org/release/Minion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linkcheck doesn't work - links never checked

hussam-qasem opened this issue · comments

  • Mojolicious version: 9.31
  • Minion version: 10.25
  • Perl version: v5.36.0
  • Operating system: macOS 12.6.3 (21G419)

Steps to reproduce the behavior

  1. Start a Postgres Database
docker run --rm --name postgres -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:15.2
  1. start linkcheck Mojo App.
git clone https://github.com/mojolicious/minion/
cd minion/examples/linkcheck/
morbo script/linkcheck
  1. Check the default URL (POST)
curl -X POST -F url=https://mojolicious.org/perldoc http://127.0.0.1:3000/links
  1. Wait for results (GET)
for i in $(seq 1 10); do curl http://localhost:3000/links/1; sleep 3; done

Expected behavior

Result should return

Actual behavior

Result never returned. LinkCheck::Task::CheckLinks::_check_links never called.

Test fails

TEST_ONLINE=postgresql://postgres@127.0.0.1:5432/postgres script/linkcheck test

Unknown command "test", maybe you need to install it?

I am sorry. I forgot to run a worker:

perl script/linkcheck minion worker

In docker environment, should the worker be running in a separate container though?

In docker environment, should the worker be running in a separate container though?

Yes.

Thank you @kraih for the prompt response. I'm still unable to run the tests though:

TEST_ONLINE=postgresql://postgres@127.0.0.1:5432/postgres script/linkcheck test
...script/linkcheck test

I have no idea what that is.

...script/linkcheck test

I have no idea what that is.

From the test file. I thought it was possible, other than prove -lv. Thank you!