sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

Add documentation for signal folder/factory

Open eakmanrq opened this issue 5 months ago • 0 comments

Slack context: https://tobiko-data.slack.com/archives/C07HJH22U9Z/p1725024070460339?thread_ts=1725006361.257769&cid=C07HJH22U9Z

Links from convo: https://github.com/TobikoData/sqlmesh/blob/main/sqlmesh/core/scheduler.py#L85-L100 https://github.com/TobikoData/sqlmesh/blob/main/sqlmesh/core/scheduler.py#L53-L77

Text:

Basically, create a file signals/__init__.py and create a function decorated with @signal_factory there. That function should return instances of the Signal class.

eakmanrq avatar Aug 30 '24 16:08 eakmanrq