We are trying to write a Python function that is called after an hour from the current date. Based on the docs, frappe.enqueue is what we want to use to run this function in the background.
However, frappe.enqueue does not include a way to schedule the job.
For example:
frappe.enqueue(
run_at=...
)
Something like this is not available in frappe.enqueue.
Please advise if there is any other way to schedule a function to run after a specific duration.
# Schedule job to run at 9:15, October 10th
job = queue.enqueue_at(datetime(2019, 10, 8, 9, 15), say_hello)
# Schedule job to be run in 10 seconds
job = queue.enqueue_in(timedelta(seconds=10), say_hello)