Implement event machine for upload worker