mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 17:26:17 +00:00
refactor: remove legacy scheduling and analytics code
- Deleted the scheduler module and its associated functions, transitioning to OS-level scheduling. - Removed the Analytics module and its related interfaces, retaining only a placeholder for backward compatibility. - Updated ConfigValidator to warn about legacy schedule and analytics configurations. - Cleaned up StartupValidator to remove diagnostics and schedule validation logic. - Adjusted Load.ts to handle legacy flags for diagnostics and analytics. - Removed unused diagnostics capturing functionality.
This commit is contained in:
@@ -80,8 +80,8 @@ COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
# Use entrypoint that supports both scheduler and cron
|
||||
# Use entrypoint that supports single-run and optional cron mode
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
# Default: use built-in scheduler
|
||||
CMD ["npm", "run", "start:schedule"]
|
||||
# Default: single execution
|
||||
CMD ["node", "--enable-source-maps", "./dist/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user