Parfeval, Backgroundpool and Webread

8 views (last 30 days)
I am trying to use parfeval to do a webread on a background pool and it responds with the message...
Invalid default value for property 'UserAgent' in class 'weboptions':Use of function version is not supported on a thread-based worker. Use alternatives supported on the background pool.
which I assume means I can't use webread with the background pool.
is there another way to do this?

Accepted Answer

Edric Ellis
Edric Ellis on 10 Jan 2022
Unfortunately, as you suspect, right now the only way to do this is to use a process pool via parpool('local') or similar.
Raymond Norris
Raymond Norris on 17 Feb 2022
As Edric suggests, use a local parallel pool.
pool = parpool("local",1);
f = pool.parfeval(@webread,1,'');

Sign in to comment.

More Answers (0)




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by