harbor run -t openthoughts/tasktrove-mix-h2-language-proportional-mix-h2-lang-proportional-3842harbor download openthoughts/tasktrove-mix-h2-language-proportional-mix-h2-lang-proportional-3842Task: Implement the aiocron module
Location: Put the implementation in /app/aiocron.py (as a single module) or as a package at /app/aiocron/ with an init.py exporting the same API.
Goal Create a small asyncio-based cron helper that satisfies the provided pytest tests. The module must provide a crontab decorator usable in both decorator form and with an explicit function, and a CronTab-like object that can schedule, run, and query next execution times according to a cron string. It must be compatible with the tests’ expectations for both synchronous and asynchronous wrapped functions, error handling, and a DST-aware next-time calculation used by a specific test.
Required functionality to implement
Summary Create a functional aiocron.py (/app/aiocron.py) implementing a crontab decorator and a CronTab-like class with the APIs and behaviors described above. The implementation must satisfy all the pytest tests provided, including correct string representation, start/stop scheduling, safe error handling, next() semantics for sync/async functions, and a DST-aware get_next()/initialize() workflow that responds to the test’s monkeypatching of aiocron.datetime.