Parallel computing : Job Finished callback with local scheduler

3 views (last 30 days)
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.

Answers (1)

Ben
Ben on 6 Apr 2012
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.

Community Treasure Hunt

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

Start Hunting!