ramp_database.tools.event.add_workflow¶
-
ramp_database.tools.event.add_workflow(session, workflow_object)¶ Add a new workflow.
Workflow class should exist in
rampwf.workflows. The name of the workflow will be the classname (e.g. Classifier). Element names are taken fromworkflow.element_names. Element types are inferred from the extension. This is important because e.g. the max size and the editability will depend on the type.add_workflowis called byadd_problem, taking the workflow to add from theproblem.pyfile of the starting kit.- Parameters
- session
sqlalchemy.orm.Session The session to directly perform the operation on the database.
- workflow_object
rampwf.workflows A ramp workflow instance. Refer to
rampwf.workflowsfor all available workflows.
- session