# Example functions
def report1():
print("Function report1 is running.")
# # Create Job instances and associate functions with them
job1 = Job().do(report1, 'report1').every(5).second.until('jkfcedf')
scheduler = Scheduler(threading=False,time_zone=-1)
scheduler.add_job(job1)
scheduler.run_all()
when running scheduler = Scheduler(threading=False,time_zone=-1)
this line I want Job()
class to be able to read timezone from Scheduler class before add_job
adds it, so I can use Scheduler’s timezone
when I do not manually pass it to Job()
I expect Job()’s all methods to return Scheduler’s timezone/date when I do not manually pass those attributes to Job() class
New contributor
Christina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2