Processes
Your Lair is built to execute processes from its files, triggers, or events. When a process is started, WayScript isolates its execution in an optimized container.

Executing a process

A process can be executed in the following ways:
  • Manual invocation of a trigger - see Triggers for more details
  • Event-based invocation of a trigger - see Triggers for more details
  • Run command entered into the terminal - see Terminal for more details
Your processes are executed against your Lair’s remote file system, not the files on your local machine. If your process execution does not reflect file changes made locally, you must first “Push” your file system. See File system for more details on file sync.

Viewing running processes

A list of your Lair’s running processes is located on the bottom of your Lair editor. Each row is an independent process. You can see when the process was started and ended, what run command was used to execute the process, how the process was invoked (from which trigger), and the current process status.
Your Lair’s process list does not show processes executed from the Lair terminal. The Lair terminal should be used for testing and any terminal sub-processes will be exited when the terminal session has been terminated.

Process statuses

  • Running: process is being executed
  • Done: process has exited without error (exit code 0), commonly from end-of-file
  • Killed: process exited due to manual interruption
  • Failed: process has exited due to error (exit code > 0)

Terminating running processes

Running processes can be manually terminated by right-clicking on the respective row in the process list. Please allow for a few seconds delay as your process is terminated and its allocated container is spun down.