def __init__(self, task, policy=None, task_group_id=None, on_drop=None, on_wait=None):
		""" Create new schedule record

		:param task: task to run
		:param policy: postpone policy
		:param task_group_id: identifier that groups different scheduler records and single postpone policy
		:param on_drop: callback, that must be called if this task is skipped
		:param on_wait: callback, that must be called if this task is postponed
		"""

		if policy is not None and isinstance(policy, WScheduleRecord.PostponePolicy) is False:
			raise TypeError('Invalid policy object type')

		self.__task = task
		self.__policy = policy if policy is not None else WScheduleRecord.PostponePolicy.wait
		self.__task_group_id = task_group_id
		self.__on_drop = on_drop
		self.__on_wait = on_wait
def __init__ ( self , task , policy = None , task_group_id = None , on_drop = None , on_wait = None ) : if policy is not None and isinstance ( policy , WScheduleRecord . PostponePolicy ) is False : raise TypeError ( 'Invalid policy object type' ) self . __task = task self . __policy = policy if policy is not None else WScheduleRecord . PostponePolicy . wait self . __task_group_id = task_group_id self . __on_drop = on_drop self . __on_wait = on_wait
Create new schedule record

		:param task: task to run
		:param policy: postpone policy
		:param task_group_id: identifier that groups different scheduler records and single postpone policy
		:param on_drop: callback, that must be called if this task is skipped
		:param on_wait: callback, that must be called if this task is postponed