-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[api-minor] Allows a worker to handle multiple documents. #6571
Conversation
c821a4a
to
e736a3f
Compare
this._worker = null; | ||
|
||
/** | ||
* Unique document loading task id -- used in MessageHanlders. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: typo MessageHandlers
7d2aa9a
to
7b5b3d4
Compare
Some unit tests added to test PDFWorker functionality. /botio test |
I've gone through (and manually tested) this PR, and it all looks good to me! @brendandahl Would you mind looking through this as well? |
* MessageHandler is known. | ||
* @private | ||
*/ | ||
function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: the worker
parameter is missing in the JSDoc comments above.
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/af51956bde57538/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/af51956bde57538/output.txt Total script time: 0.78 mins Published |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/68d9e8a784563b7/output.txt |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/2ec1e7b8a44c8e0/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/d8f33d17ecf2603/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/2ec1e7b8a44c8e0/output.txt Total script time: 18.39 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/d8f33d17ecf2603/output.txt Total script time: 19.83 mins
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 1 Live output at: http://107.21.233.14:8877/9c48288dbcad83c/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/9c48288dbcad83c/output.txt Total script time: 0.77 mins Published |
[api-minor] Allows a worker to handle multiple documents.
Nice work! |
Added features:
docId
, that allows generate unique fonts and use several PDF documents inside single worker