[ https://issues.apache.org/jira/browse/COUCHDB-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107008#comment-13107008 ]
Filipe Manana commented on COUCHDB-1266: ---------------------------------------- Applied to trunk and branch 1.2.x. Here's an _active_tasks example output: $ 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.couchone.com/indexer_test/", "source_seq":551202, "started_on":1316229471, "target":"indexer_test", "type":"replication", "updated_on":1316230082 } ] > Make _active_tasks more flexible > -------------------------------- > > Key: COUCHDB-1266 > URL: https://issues.apache.org/jira/browse/COUCHDB-1266 > Project: CouchDB > Issue Type: Improvement > Reporter: Filipe Manana > Assignee: Filipe Manana > Fix For: 1.2 > > Attachments: alternate-api.patch > > > This proposal is simply to allow the output of _active_tasks to be less > rigid. Basically to allow each task to be able to output different JSON > fields. > Somethings like the status text simply go away. Instead application can built > it based on more granular fields provided by _active_tasks. > Some examples: > 1) "progress" (an integer percentage, for all tasks) > 2) "database" (for compactions and indexer tasks) > 3) "design_document" (for indexer and view compaction tasks) > 4) "source" and "target" (for replications) > 5) "docs_read", "docs_written", "doc_write_failures", > "missing_revs_found", "missing_revs_checked", "source_seq", > "checkpointed_source_seq" and "continuous" for replications -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira