priyanshu-panwar / fastapi-utilities

🎨⚡️🔥 Reusable Utilities for FastAPI
https://youtu.be/ZIggeTU8JhQ?si=SO1B0Is0RdXDkbCa
MIT License
40 stars 1 forks source link

🚀cron jobs with `repeat_at` #3

Closed priyanshu-panwar closed 1 year ago

priyanshu-panwar commented 1 year ago

@router.on_event("startup") @repeat_at(cron="/2 *") #every 2nd minute async def hey(): print("hey")

codecov[bot] commented 1 year ago

Codecov Report

Merging #3 (ea5aed6) into master (eed50b9) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         3    +2     
  Lines           29        67   +38     
=========================================
+ Hits            29        67   +38     
Files Coverage Δ
fastapi_utilities/__init__.py 100.00% <100.00%> (ø)
fastapi_utilities/repeat/repeat_at.py 100.00% <100.00%> (ø)
fastapi_utilities/repeat/repeat_every.py 100.00% <ø> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more