Webpublisher - headless publish shouldn't be blocking operation (#5177)

* OP-6239 - headless publish from webpublisher shouldn't be blocking

subprocess.call is blocking, which resulted in UI non responsiveness as it was waiting for publish to finish.

* OP-6239 - revert of typo
This commit is contained in:
Petr Kalis 2023-06-22 20:17:56 +02:00 committed by GitHub
parent f76e32940a
commit cca689e48f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ class BatchPublishEndpoint(WebpublishApiEndpoint):
log.debug("Adding to queue")
self.resource.studio_task_queue.append(args)
else:
subprocess.call(args)
subprocess.Popen(args)
return Response(
status=200,