Skip to content

autonomy.data.Dockerfiles.dev.watcher

Watcher script and wrapper container for agent.

write

def write(line: str) -> None

Write to console.

call_vote

def call_vote() -> None

Call vote.

Since there's a lot of resource sharing between docker containers one of the environments can fallback during base_setup so to make sure there's no error caused by one of the agents left behind this method will help.

AEARunner Objects

class AEARunner()

AEA Runner.

process

nosec

__init__

def __init__() -> None

Initialize runner.

restart_tendermint

@staticmethod
def restart_tendermint() -> None

Restart respective tendermint node.

start

def start() -> None

Start AEA process.

stop

def stop() -> None

Stop AEA process.

EventHandler Objects

class EventHandler(FileSystemEventHandler)

Handle file updates.

__init__

def __init__(aea_runner: AEARunner,
             fingerprint_on_restart: bool = True) -> None

Initialize object.

fingerprint_item

@staticmethod
def fingerprint_item(src_path: str) -> None

Fingerprint items.

clean_up

@staticmethod
def clean_up() -> None

Clean up from previous run.

on_any_event

def on_any_event(event: FileSystemEvent) -> None

This method reloads the agent when a change is detected in *.py file.