Cluster pending tasks support

Closes #494