Page MenuHomeSoftware Heritage

gunicorn_config: Fix tests after recent changes in swh-core
ClosedPublic

Authored by anlambert on Jan 15 2020, 1:54 PM.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.Jan 15 2020, 1:54 PM
anlambert updated this revision to Diff 9012.Jan 15 2020, 2:01 PM

Update: Remove duplicated license header and update copyright years

vlorentz accepted this revision.Jan 15 2020, 2:18 PM

Oops, I forgot that file.

This revision is now accepted and ready to land.Jan 15 2020, 2:18 PM
vlorentz requested changes to this revision.Jan 15 2020, 2:20 PM

Actually, I think it would be cleaner to also stop importing swh.core's post_fork, and call swh.core.sentry.init_sentry instead:

def post_fork(server, worker)
    init_sentry(integrations=[DjangoIntegration()])
This revision now requires changes to proceed.Jan 15 2020, 2:20 PM
anlambert updated this revision to Diff 9015.Jan 15 2020, 2:35 PM

Address @vlorentz comment

vlorentz accepted this revision.Jan 15 2020, 2:36 PM
This revision is now accepted and ready to land.Jan 15 2020, 2:36 PM
This revision was landed with ongoing or failed builds.Jan 15 2020, 2:38 PM
This revision was automatically updated to reflect the committed changes.