def send_last_reminder():
	logging.debug('========================')
	logging.debug('LAST REMINDER')

	for job in Job.find_all_upcoming(1):
		logging.debug('Sending reminder to Job: %s...' % str(job.key.id()))
		_enqueue_last_reminder_message(job)

	logging.debug('JOB COMPLETED')
	logging.debug('========================')

	return '', 200
def send_first_reminder():
	logging.debug('========================')
	logging.debug('FIRST REMINDER')

	number_of_days = settings.get('number_of_days_to_remind_owner')
	for job in Job.find_all_upcoming(number_of_days):
		logging.debug('Sending reminder to Job: %s...' % str(job.key.id()))
		_enqueue_first_reminder_message(job)

	logging.debug('JOB COMPLETED')
	logging.debug('========================')

	return '', 200