Shyp / rickover

A job queue and scheduler written in Go, backed by Postgres, and available over HTTP
https://godoc.org/github.com/Shyp/rickover
MIT License
182 stars 21 forks source link

Log unknown errors #7

Closed kevinburke closed 7 years ago

kevinburke commented 7 years ago

In this case I was hitting this error because I was returning the empty string for a HTTP response, instead of returning a decodable JSON object and it was difficult to track down why this was happening. Let's log an error message if we hit an unknown error so we can see why we are hitting this error case.

Also fixes the docstring for queued_jobs.Get.

kevinburke commented 7 years ago

(I am making requests to a PHP server which was recording success before client.Job.Post returned! You can't do things in the background in PHP)

ianmdawson commented 7 years ago

looks good to me 👍