Generate id for getting task info