Comments (10)
https://github.com/node-cron/node-cron#allowed-values
from schedule.
Hi @kamilmysliwiec.
In the link that you passed me appears as a range of values 1-12, and I'm reporting that, that the library uses 0 to 11.
from schedule.
@kb05 You are right but I guess its not going to change since schedule depends on cron library which has
wrong range for month.
This should be written in the doc.
@kamilmysliwiec the URL you have sent is wrong.
from schedule.
has wrong range for month.
isn't wrong, it's just how the month part of Date
is encoded (0-based)
from schedule.
I suggest reporting this to node-cron
side instead. I can't tell if they're translating those 1-12 to 0-11 or not.
On NestJS docs there is a mention tp that package, so I guess there's nothing to do on our side.
from schedule.
Thanks @micalevisk
Sure, are we talking about same cron lib since:
@kamilmysliwiec sent
https://github.com/node-cron/node-cron
but
@nestjs/schedule has dependency on
from schedule.
oh, then we should update the docs. PRs are more than welcomed
https://github.com/kelektiv/node-cron#cron-ranges
from schedule.
Sure, what repo?
from schedule.
https://docs.nestjs.com/techniques/task-scheduling
Change that node-cron
to cron
. The hyperlink is correct
from schedule.
Hope the PR is valid.
from schedule.
Related Issues (20)
- Exceptions not handled in cronjob functions added via SchedulerRegistry HOT 3
- @nestjs/schedule2.1.0 depends on vulnerable versions of luxon HOT 3
- Vulnerability found in the dependency HOT 1
- EVERY_YEAR Cronexpression is invalid HOT 3
- Switch scheduling backend to Croner HOT 2
- Cronjob Management Dashboard HOT 1
- Update cron dependency to 2.3.0 to fix date.format is not a function HOT 3
- Infinite loop in cron job
- Prevent new jobs running if job still in progress HOT 1
- Crons don't start HOT 1
- Cannot find type definition file for 'cron' HOT 12
- How to stop an actively running cron job? HOT 1
- Cron call twice times HOT 1
- Get the cron expression from the config too
- Get the cron expression from the config too HOT 1
- The type CronJob.cronTime not match with cron v3.1.6 HOT 6
- Using `env` variables in the `@Cron` handle HOT 2
- Cron Jitter HOT 1
- Missing CronJob type generics in SchedulerRegistry.addCronJob HOT 3
- Types of property 'cronTime' are incompatible. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schedule.