Add _cat/pending_tasks.

Closes #4251.