patch for setting prep ids per task in task chain
Merge pull request #5474 from ticoann/prep_id_by_task

setting prep ids per task in task chain