Jobs
Create a Job
Description
The get_job()
and create_job()
functions let you save either an existing job or a newly created job into a variable.
Syntax
Use the get_job()
method to get an existing job:
Or, the create_job()
method to create a job:
Alternatively, you can create a job using this syntax:
Where:
name='job_name'
is the job name,repeat_min=1
indicates 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.
Note that the 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.
Was this page helpful?