SyncBybitLaunchpoolWorkflow
Purpose
Снимает snapshot Bybit Launchpool через API и записывает факты в Timescale.
Код: internal/worker/workflows/sync_bybit_launchpool.go
Input / Output
Input (models.SyncBybitLaunchpoolInput):
- current (optional, default 1)
Output (models.SyncBybitLaunchpoolResult):
- snapshot_at
- projects_seen, projects_upserted
- subpools_seen, subpools_upserted
- quarantine_rows
- errors[], has_errors
Called Activities / Children
- Activity:
SyncBybitLaunchpoolSnapshot - Child workflows: нет
Retry / Failure Behavior
- Activity timeout:
3m - Retry:
max_attempts=3 - Non-retryable:
bybit_access_denied
Manual Run
docker compose exec -T temporal temporal workflow start \
--address temporal:7233 --namespace default --task-queue default \
--type SyncBybitLaunchpoolWorkflow \
--workflow-id sync-bybit-launchpool-manual-$(date +%s) \
--input '{"current":1}'
Related Tables / Logs
- Tables:
fct_bybit_launchpool_snapshot,fct_bybit_launchpool_subpool_snapshot,fct_bybit_launchpool_response_snapshot,fct_bybit_launchpool_quarantine,fct_bybit_launchpool_5min,fct_bybit_launchpool_daily - Логи:
bybit_launchpool_mapping_coverage,bybit launchpool api request failed