Minor fixes to new task scheduler

I guess the TaskIds enum might be better generated?