admin.canCommitUpgrade() as Boolean
This function returns true
if the cluster is ready to commit
the upgrade, returns false
otherwise.
http://marklogic.com/xdmp/privileges/admin/cluster
const admin = require('/MarkLogic/admin.xqy'); admin.canCommitUpgrade() //returns true if the cluster is ready to commit the upgrade