removed static to fix bug in GET status response
trying to fix errors due to static variables
added fix for correctly maintaining metadata about the job incase of failure