Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

/close returns an object and closes the transaction #19

Closed
cactus opened this Issue · 3 comments

2 participants

eli Erik Frey
eli

I was trying to /close a message but not get the next one yet.

stats
STAT queue_job_queue_items 2
STAT queue_job_queue_waiters 0
STAT queue_job_queue_open_transactions 0
END

get job_queue/open
VALUE job_queue 0 32
{"url": "http://www.google.com"}
END

stats
STAT queue_job_queue_items 1
STAT queue_job_queue_waiters 0
STAT queue_job_queue_open_transactions 1
END

get job_queue/close
VALUE job_queue 0 32
{"url": "http://www.google.com"}
END

stats
STAT queue_job_queue_items 0
STAT queue_job_queue_waiters 0
STAT queue_job_queue_open_transactions 0
END

It looks like /close is returning a message, as well as closing the transaction (and not opening a new transaction like /close/open would).

Is this expected behavior?

Erik Frey

Good catch! Yeah, it's interpreting it as "close the last transaction and also get the next item", which is wrong and not what Kestrel does. I'll post a test and a fix in the next day or two, thanks.

Erik Frey erikfrey closed this in 0132f68
Erik Frey

@cactus 0132f68 ought to do the trick for you.

eli

Thanks Erik!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.