Main Content

updateAttachedFiles

Update attached files or folders on parallel pool

    Description

    example

    updateAttachedFiles(poolobj) checks all the attached files of the specified parallel pool to see if they have changed, and replicates any changes to each of the workers in the pool. This checks files that were attached (by a profile or parpool argument) when the pool was started and those subsequently attached with the addAttachedFiles command.

    Examples

    collapse all

    Update all attached files on the current parallel pool.

    poolobj = gcp;
    updateAttachedFiles(poolobj)

    Input Arguments

    collapse all

    Parallel pool, specified as a parallel.ProcessPool or parallel.ClusterPool object.

    To create a process pool or cluster pool, use parpool.

    Example: poolobj = parpool('local');

    Introduced in R2013b