I have to call a function in python like this
job = scheduler.add_job(job_func, 'interval', minutes=10, id=req_json['job_id'], replace_existing=True)
where I want to pass custom intervals like minutes/seconds/etc based on request params, so I was trying this
job = scheduler.add_job(job_func, 'interval', interval_[1]=float(interval_[0]), id=req_json['job_id'], replace_existing=True, args=[req_json])
where interval_ = "10 seconds".split(' ')
How do i do this?