UNKNOWN_HOOK

CompileSeen in: The editor

What happened

A method whose name starts with on_ is read as a hook. This one is not a hook Forge has.

What to do

Rename it, or schedule it with @fg.every or @fg.on. When the name is close to a hook, the message suggests it.

Example

text
strategy.py, line 27: `on_signal` is not a Forge hook. Rename it, or schedule it with @fg.every or @fg.on. [UNKNOWN_HOOK]

The wording of the message depends on your file, and the code does not. An error stops the file from loading.

Ask about this in the forum