Add max_prepared_tasks attribute in Poller config