You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: aas_sackworker.m
    path of file: ./repos/automaticanalysis/aa_engine
    
    the code of the file until where you have to start completion: function [aap]=aas_sackworker(aap,aaworkerid)
% Now recursive kill of child jobs as well

global aaparallel


    
function [aap]=aas_sackworker(aap,aaworkerid)
% Now recursive kill of child jobs as well

global aaparallel

% Get directory for worker directories
parmpth=aaworker_getparmpath(aap,aaworkerid,true);

%
try
    aaworker=xml_read(fullfile(parmpth,'aaworker.xml'));
    try
        aaworker.pid;
    catch
    end