xxxxxxxxxx
import schedule
import time
def hourly_task():
# Your task code here
print("This task runs every hour")
# Schedule the task to run every hour based on the Cron expression
schedule.every().hour.do(hourly_task)
# Run the pending scheduled tasks
while True:
schedule.run_pending()
time.sleep(1)