compute_result function

Executes a job and returns the data immediately