You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2011/11/27 19:12:36 UTC

[Couchdb Wiki] Update of "HttpGetActiveTasks" by FilipeManana

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "HttpGetActiveTasks" page has been changed by FilipeManana:
http://wiki.apache.org/couchdb/HttpGetActiveTasks?action=diff&rev1=3&rev2=4

Comment:
Updated to reflect changes in the 1.2.0 (yet to come) release

  
  Returns a list of running tasks.
  
- == Example ==
+ === Example ===
  {{{
  GET /_active_tasks HTTP/1.1
  }}}{{{
@@ -24, +24 @@

  [{"type":"Database Compaction","task":"exampledb","status":"Copied 5001 of 14832 changes (33%)","pid":"<0.14557.22>"}]
  }}}
  
+ == Changes in CouchDB 1.2.0 ==
+ 
+ The 1.2.0 release (not yet released at the moment of this writing, November 27 2011) offers a more granular active tasks output. Basically, each task can have different properties which are only meaningful for that particular task type.
+ 
+ === Example ===
+ 
+ {{{
+ $ curl http://localhost:5984/_active_tasks 
+ [ 
+   { 
+     "pid": "<0.242.0>", 
+     "changes_done": 31209, 
+     "database": "indexer_test_3", 
+     "design_document": "_design/test", 
+     "progress": 5, 
+     "started_on": 1316228432, 
+     "total_changes": 551201, 
+     "type": "indexer", 
+     "updated_on": 1316228461 
+   },
+   { 
+     "pid": "<0.1156.0>", 
+     "database": "indexer_test_3", 
+     "design_document": "_design/test", 
+     "progress": 21, 
+     "started_on": 1316229336, 
+     "type": "view_compaction", 
+     "updated_on": 1316229352 
+   }, 
+   { 
+     "pid": "<0.1303.0>", 
+     "checkpointed_source_seq": 17333, 
+     "continuous": false, 
+     "doc_write_failures": 0, 
+     "docs_read": 17833, 
+     "docs_written": 17833, 
+     "missing_revisions_found": 17833, 
+     "progress": 3, 
+     "revisions_checked": 17833, 
+     "source": "http://fdmanana.iriscouch.com/indexer_test/", 
+     "source_seq": 551202, 
+     "started_on": 1316229471, 
+     "target": "indexer_test", 
+     "type": "replication", 
+     "updated_on": 1316230082 
+   } 
+ ]
+ }}}
+ 
+ The '''progress''' field is an integer in the range 0 to 100. The values for the fields '''started_on''' and '''updated_on''' corresponds to unix timestamps.
+