Page MenuHomeSoftware Heritage

docker: use a dedicated container for the cron-like job of swh-web
ClosedPublic

Authored by douardda on Oct 4 2021, 5:33 PM.

Details

Summary

makes it easier to read the logs: just use:

swh-compose logs -f swh-web-cron

Depends on D6402

Diff Detail

Repository
rDENV Development environment
Branch
master
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 24205
Build 37784: arc lint + arc unit

Event Timeline

Nice! Fine with the current implem as it's the same as before in a dedicated container so better.

As @vsellier suggested can't we trap the signal, i've proposed a patch.

docker/services/swh-web/entrypoint.sh
25–31

Let's trap sigterm.

This revision is now accepted and ready to land.Oct 4 2021, 5:44 PM

improve entrypoint script to properly handle a SIGTERM

and make docker-compose restart not wait for (up to) 15s