Added a timeout parameter for the maximum time to allow a print to run before cancelling
Add metrics to track http requests.
Added "state" to executing tasks so I can see which tasks are running and which are waiting.