Parallel computing : Job Finished callback with local scheduler
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a (non-Matlab) application which generates compressed images, and send notifications via UDP packets.
In MATLAB I am using a udp_obj to listen for these packets, and I have a function which is being run as a callback. This function has to kick off a job to unpack the generated image, but I cannot allow the udp_obj callback to be blocked or wait for the job to complete.
I'm using the local scheduler - obtaining the distributed toolbox is not an option. It seems that you cannot register a "FinishedFcn" callback with the job if you are using the local scheduler. Is there any other way of getting an asynchronous notification when the job is finished? Apart from anything else, I need to dispose of the job object.
Thanks in advance, Paul.
0 个评论
回答(1 个)
Ben
2012-4-6
i would like to know the answer to this too! in brief, why is FinishedFcn not supported for the local scheduler?
j=batch(...,'FinishedFcn',@mycallback);
according to the documentation it only works with the Mathworks job manager, which is part of the distributed computing server, not the parallel computing toolbox. boo.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!