linkcheck doesn't work - links never checked
hussam-qasem opened this issue · comments
Hussam Qasem commented
- 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
- Start a Postgres Database
docker run --rm --name postgres -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:15.2
- start
linkcheck
Mojo App.
git clone https://github.com/mojolicious/minion/
cd minion/examples/linkcheck/
morbo script/linkcheck
- Check the default URL (POST)
curl -X POST -F url=https://mojolicious.org/perldoc http://127.0.0.1:3000/links
- 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?
Hussam Qasem commented
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?
Sebastian Riedel commented
In docker environment, should the worker be running in a separate container though?
Yes.
Hussam Qasem commented
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
Sebastian Riedel commented
...script/linkcheck test
I have no idea what that is.
Hussam Qasem commented
...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!