--- title: "wallaroo.orchestration" type: docs linkTitle: "wallaroo.orchestration" ---
class Orchestration(wallaroo.object.Object):

An Orchestration object that represents some user-defined code that has been packaged into a container and can be deployed.

Orchestration( client: wallaroo.client.Client, data: Dict[str, Any], standalone=False)

Base constructor.

Each object requires:

  • a GraphQL client - in order to fill its missing members dynamically
  • an initial data blob - typically from unserialized JSON, contains at
  • least the data for required members (typically the object's primary key) and optionally other data members.
@staticmethod
def list_orchestrations( client: wallaroo.client.Client) -> List[wallaroo.orchestration.Orchestration]:
@staticmethod
def upload( client: wallaroo.client.Client, bytes_buffer: Optional[bytes] = None, path: Optional[str] = None, file_name: Optional[str] = None) -> wallaroo.orchestration.Orchestration:
def run_once(self, json_args: Dict[Any, Any] = {}, timeout: Optional[int] = None):

Runs this Orchestration once.

Parameters
  • json_args Dict[Any, Any] A JSON object containing deploy-specific arguments.
Returns

A metadata object associated with the deploy Task

def run_scheduled( self, name: str, schedule: str, timeout: Optional[int] = None, json_args: Dict[Any, Any] = {}):

Runs this Orchestration on a cron schedule.

Parameters
  • name str A descriptive identifier for this run.
  • schedule str A cron-style scheduling string, e.g. "* * * * " or "/15 * * * *"
  • timeout Optional[int] A timeout in milliseconds.
  • json_args Dict[Any, Any] A JSON object containing deploy-specific arguments.
Returns

A metadata object associated with the deploy Task

def run_continuously( self, name: str, service_name: str, service_port: int, service_protocol: str, json_args: Dict[Any, Any] = {}):

Runs this Orchestration continuously.

Parameters
  • name str A descriptive identifier for this run.
  • service_name str A descriptive identifier for the service.
  • service_port int A port number to expose for the service.
  • service_protocol str Protocols to use for the service.
  • json_args Dict[Any, Any] A JSON object containing deploy-specific arguments.
Returns

A metadata object associated with the deploy Task

def id(*args, **kwargs):
def file_name(*args, **kwargs):
def sha(*args, **kwargs):
def status(*args, **kwargs):
def created_at(*args, **kwargs):
def updated_at(*args, **kwargs):
def workspace_id(*args, **kwargs):
def task(*args, **kwargs):
class OrchestrationList(typing.List[wallaroo.orchestration.Orchestration]):

Wraps a list of pipelines for display in a display-aware environment like Jupyter.

Inherited Members
builtins.list
list
clear
copy
append
insert
extend
pop
remove
index
count
reverse
sort
class OrchestrationUploadFailed(builtins.Exception):

Raised when uploading an Orchestration fails due to a backend issue.

OrchestrationUploadFailed(e)
Inherited Members
builtins.BaseException
with_traceback
args
class OrchestrationMissingFile(builtins.Exception):

Raised when uploading an Orchestration without providing a file-like object.

OrchestrationMissingFile()
Inherited Members
builtins.BaseException
with_traceback
args
class OrchestrationDeployOneshotFailed(builtins.Exception):

Raised when deploying an Orchestration fails due to a backend issue.

OrchestrationDeployOneshotFailed(e)
Inherited Members
builtins.BaseException
with_traceback
args