/api/ping on a browser

13 views
Skip to first unread message

tashri...@gmail.com

unread,
Jul 20, 2021, 4:13:25 PM7/20/21
to Luigi
Hi folks,

Is this supposed to display anything on a browser:


I only see `500: Internal Server Error` on my browser although different tabs of http://localhost:8082/ are functional.

Best,
Tashrif

tashri...@gmail.com

unread,
Jul 20, 2021, 5:31:50 PM7/20/21
to Luigi
Okay, I realized how the URL should be constructed:

http://localhost:8082/api/ping?data={"worker":"name_of_worker"}

as found here.

Yet, my problem is I am not sure what my worker name is. I have the following console output. Can you guess?

```bash
INFO: Running Worker with 1 processes
INFO: [pid 57799] Worker Worker(salt=934948318, workers=1, host=localhost, username=571, pid=57799) running   TaskA(a=0.236)
INFO: [pid 57799] Worker Worker(salt=934948318, workers=1, host=localhost, username=571, pid=57799) done      TaskA(a=0.236)
INFO: Informed scheduler that task   TaskA_0_236_19ec3786da   has status   DONE
INFO: [pid 57799] Worker Worker(salt=934948318, workers=1, host=localhost, username=571, pid=57799) running   TaskB(a=0.236, b=0.274)
INFO: [pid 57799] Worker Worker(salt=934948318, workers=1, host=localhost, username=571, pid=57799) done      TaskB(a=0.236, b=0.274)
...
...
```

-Tashrif

Lars Albertsson

unread,
Aug 13, 2021, 6:18:38 PM8/13/21
to tashri...@gmail.com, Luigi
You shouldn't access the luigid web api from your code. Luigi worker code calls the web api. Your code should only interact with the python api, i.e. primarily subclasses of Task and Target.


--
You received this message because you are subscribed to the Google Groups "Luigi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to luigi-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/8555ebc1-0d7e-4a20-ac96-0bb89cce5af6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages