incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharat Bharat <Bharat.Bha...@citrix.com>
Subject Re: How to cancel a continuous replication task
Date Thu, 19 Aug 2010 16:25:02 GMT
This works for me:

curl -X POST -d '{"source":"http://couchdb:5984/db","target":"db","continuous":true,"cancel":true}'
http://couchdb:5984/_replicate

Only difference is that I never use a url in "target" so I run cancel locally from where your
process is running. 

On Aug 19, 2010, at 9:08 AM, Zachary Zolton wrote:

> Howdy,
> 
> I know you're supposed to be able to cancel a continuous replication
> task by adding "cancel":true to the JSON body, but I've never been
> able to get it working.
> 
> For example, I just started this replication job:
> 
> curl -X POST 'http://localhost:5984/_replicate' -d
> '{"source":"my-db","target":"http://username:pass@couch.host/target-db","continuous":true,"create_target":true}'
> 
> Then, I tried to cancel it:
> 
> curl -X POST 'http://localhost:5984/_replicate' -d
> '{"source":"my-db","target":"http://username:pass@couch.host/target-db","continuous":true,"cancel":true}'
> 
> I get the following result:
> 
> {"error":"not_found"}
> 
> Any ideas of what I'm doing wrong here?
> 
> 
> Cheers,
> 
> Zach
> 
> 
> P.S. I'm aware of the instructions on the wiki:
> http://wiki.apache.org/couchdb/Replication#Cancelling_a_continuous_replication_task


Mime
View raw message