Description
Theget_job() and create_job() functions let you save either an existing job or a newly created job into a variable.
Syntax
Use theget_job() method to get an existing job:
create_job() method to create a job:
name='job_name'is the job name,repeat_min=1indicates periodicity of the job in minutes,job.add_query(model.retrain())adds a task to a job to retrain a model,job.add_query(model.predict(database.tables.tbl1))adds a task to a job to make predictions,job.add_query(kb.insert(database.tables.tbl1))adds a task to a job to insert data into a knowledge base,job.add_query('show models')adds a task to a job to run the statement provided as string value.
add_query() method adds tasks to a job and takes either String or Query as an argument.
Note that this method enables a job to manipulate Knowledge Bases, Models, Tables, Views, and Queries, but not Databases, Handlers, Jobs, ML Engines, or Projects.