Open petlack opened 4 years ago
I'm experiencing the same issue using current latest docker image from eoranged/rq-dashboard:latest
. I get this:
ValueError: time data '' does not match format '%Y-%m-%dT%H:%M:%SZ
I tried clearing all jobs from queues but it seems it didn't help.
Visually in the dashboard this looks like this for me:
Failed jobs
Click on the failed jobs - the "Loading" is displayed all the time, but failed jobs don't appear due to 500 Internal server error which you can see in the developer tools Network tab.
(*Clicking "Empty queue" doesn't do anything.)
@BartlomiejSkwira We experience the exact same problem. Whenever a job is executed, every queue/list only shows "Loading..." and failed jobs are not shown at all.
@BartlomiejSkwira We solved the problem by using eoranged/rq-dashboard:latest and manually installed the newest rq version in the container. This solves the problem and everything is working fine now. Our Dockerfile looks like this now:
FROM eoranged/rq-dashboard:latest
RUN pip install rq==1.5.2
Holy crud thank you for this... I've been pulling my hair out trying to get a python-rq workflow going (due to other python requirements it's far from trivial) but this error was driving me crazy... The custom dockerfile fix is easy so thanks!
Yeah, the current requirements.txt for the project fixes rq to 1.3, but there were changes on 1.5 that broke datetimes.
props to @jmandt for finding the fix
ill try and make a PR to update the rq version, should fix this for people that install the package as well as use the docker image
Create Dockerfile
FROM eoranged/rq-dashboard:latest
RUN pip install rq==1.8.1
Run from terminal
docker build -t rq-dashboard:latest .
Enjoy :)
If you need docker-compose.yml
my_rq_dashboard:
image: rq-dashboard:latest
environment:
- RQ_DASHBOARD_REDIS_URL=redis://my_redis:6379
- RQ_DASHBOARD_USERNAME=rq
- RQ_DASHBOARD_PASSWORD=rq
ports:
- "10000:9181"
depends_on:
- my_redis
links:
- my_redis
Can confirm, issue was fixed by updating rq !
If you still see this issue, try using the latest version of rq-dashboard (0.8, not 0.6) from cjlapao/rq-dashboard:latest
When running rq-dashboard in the latest docker container with
docker run -p 9181:9181 eoranged/rq-dashboard:v0.6.3
the Workers page cannot load list of workers.
Logs: