Skip to content

Commit

Permalink
workflow server: run single-threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Jan 26, 2021
1 parent b4a8bcb commit 6d15084
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocrd/ocrd/cli/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ def shutdown(): # pylint: disable=unused-variable
fun()
return 'Stopped'
log.debug("Running server on http://%s:%d", host, port)
app.run(host=host, port=port)
# disable multithreading here:
# - GPU processors need to have same thread context between startup and processing
# - we have no multiprocessing server backend anyway (until we move to external server)
app.run(host=host, port=port, debug=False, threaded=False)

# ----------------------------------------------------------------------
# ocrd workflow client
Expand Down

0 comments on commit 6d15084

Please sign in to comment.