Revert "method api.ready can take one more argument : 'priority'"

This reverts commit 3133ece591392ecb99daaeb93cf4618482fd4323.
Keep only changes