Update processing.py

add check for success before executing callback in non-distributed run_pipeline