def allow_method(func=None):

    def wrapped(func):
        @wraps(func)
        def decorated(*args, **kwargs):
            allow_delete = app.config.get('ALLOW_DELETE', False)
            if func.func_name == 'delete' and not allow_delete:
                abort(HTTP.METHOD_NOT_ALLOWED)

            return func(*args, **kwargs)

        return decorated

    if func:
        return wrapped(func)

    return wrapped
Function reads a processed jobWrapper file and updates it state.
dataset/ETHPy150Open tooxie/shiva-server/shiva/decorators.py/allow_method--crossover with--dataset/ETHPy150Open BD2KGenomics/toil/src/toil/batchSystems/jobDispatcher.py/JobDispatcher.processFinishedJob