Commit Graph

17 Commits

Author SHA1 Message Date
11509ba8c7 fix: merge script now writes to current directory for volume compatibility
Changed merge_jsonl.py to use os.getcwd() instead of os.path.dirname(__file__)
to ensure merged.jsonl is written to the working directory where data files exist,
not to the script's installation directory.

Root cause:
- Dockerfile copies scripts to /app/scripts/ for volume compatibility
- entrypoint.sh runs: cd /app/data && python /app/scripts/merge_jsonl.py
- Old logic used script directory (/app/scripts/), ignoring working directory
- This caused merged.jsonl to be created in /app/scripts/ instead of /app/data/
- Since /app/data/ is volume-mounted, merged file was not visible to host

Solution:
- Scripts now respect current working directory (Unix philosophy)
- Works correctly with volume mounts and script relocation
- Tested in both local and Docker directory structure scenarios

Fixes the issue where merged.jsonl was missing from mounted data volume.
2025-10-31 00:03:39 -04:00
1785f9b06f feat: automate merged.jsonl creation during price fetching
Streamline the data preparation workflow by having get_daily_price.py
automatically invoke merge_jsonl.py after fetching all stock prices.

Changes:
- Modified get_daily_price.py to call merge_jsonl.py automatically
- Updated entrypoint.sh to remove redundant merge_jsonl.py call
- Updated main.sh to remove redundant merge_jsonl.py call
- Fixed import order for linting compliance

Benefits:
- Single command now handles both fetching and merging
- Ensures merged.jsonl is always created after price updates
- Simplifies Docker container startup process
- Prevents missing merged.jsonl errors in production
2025-10-30 23:48:12 -04:00
595a659fe7 fix: reduce log flooding during data fetch
Replace verbose JSON logging with concise status messages:
- Success: '✓ Fetched SYMBOL'
- Error: '⚠️  SYMBOL: API rate limit or error - [message]'

Prevents logs from being flooded with full JSON responses
for 100+ stock symbols during startup.
2025-10-30 21:15:59 -04:00
tianyufan
e16d5e2ab7 update data 2025-10-30 10:46:07 +08:00
tianyufan
09f2ce54ae update daily data 2025-10-29 12:05:49 +08:00
tianyufan
05bbe318c8 update MiniMax data 2025-10-28 21:47:16 +08:00
tianyufan
e561e13750 update data 2025-10-28 21:46:46 +08:00
tianyufan
de59b006b7 update MiniMax-M2 2025-10-28 21:17:43 +08:00
tianyufan
bb93f9f20b update 10/27 data 2025-10-28 11:32:54 +08:00
tianyufan
bc288e54b4 update data 2025-10-25 21:16:38 +08:00
tianyufan
00ca8b880b update data 2025-10-24 22:54:30 +08:00
tianyufan
61192af687 update agent data 2025-10-24 22:51:48 +08:00
tianyufan
82c48486c0 update daily data 2025-10-24 21:57:28 +08:00
tianyufan
d1971234bc update data and assets 2025-10-24 02:24:26 +08:00
tianyufan
c6cbaca0d7 update data 2025-10-24 01:43:23 +08:00
tianyufan
1b977ef87d update data 2025-10-24 00:37:11 +08:00
tianyufan
df5c25c98d init update 2025-10-24 00:35:21 +08:00