Skip to main content

Engine.start

Engine.start()

Start the engine that this method is called on.

Parameters:

   None

Returns:

   None

Examples:

Get an engine object and then start it later when ready for training.

    pc.list_engines()
# > [Engine(id=2, name=medium_cpu_engine, status=Suspended, type=kubernetes, template_id=3, auto_suspend_seconds=1800, auto_resume=True),
# Engine(id=1, name=default_engine, status=Active, type=kubernetes, template_id=1, auto_suspend_seconds=3600, auto_resume=True)]

engine = pc.get_engine(engine_id=2)

# Wait until train job to start engine

engine.start()