Add payload rpc interface to task interface

Is this possible for framework to get retry works?