Parallel computing : Job Finished callback with local scheduler
조회 수: 1 (최근 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!