Skip to content

Implement HTTP GET /status to get the State of the Queue #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Debugging instructions
  • Loading branch information
MatonAnthony committed Feb 16, 2017
commit 963fb069236327a5e7ea4f4a2564d1da02ba71ec
7 changes: 7 additions & 0 deletions go/src/pythia/backend/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
"strings"
"sync"
"time"

"encoding/json"
)

func init() {
Expand Down Expand Up @@ -154,6 +156,11 @@ func (queue *Queue) Run() {
closing := false
master := make(chan queueMessage)
queue.master = master

/* DEBUG */
json, err := json.Marshal(queue)
fmt.Println(string(json))
/* END DEBUG */
go func() {
<-queue.quit
closing = true
Expand Down