Skip to content

Commit

Permalink
Disable event processing during Devpi state import
Browse files Browse the repository at this point in the history
Devpi 5.x seems to get stuck when processing of events is active during
state import. As disabling it provides a faster import and thus a faster
availability of the server, which will then process those events after
having started up, disabling event processing during import seems a sane
default.
  • Loading branch information
matthias-bach-by committed Aug 5, 2019
1 parent 986d7ca commit 4e6307b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.5.1
-----

- Improve compatibility with Devpi 5.x by not processing events during state import.

0.5.0
-----

Expand Down
2 changes: 1 addition & 1 deletion devpi_plumber/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def TestServer(users={}, indices={}, config={}, fail_on_output=['Traceback']):

def import_state(serverdir, importdir):
devpi_server_command(serverdir=serverdir, init=None)
devpi_server_command(serverdir=serverdir, **{'import': importdir})
devpi_server_command(serverdir=serverdir, **{'import': importdir, 'no-events': None})


def export_state(serverdir, exportdir):
Expand Down

0 comments on commit 4e6307b

Please sign in to comment.