Comments (3)
Hello @renzo-s 👋
Thank you for your feedback. The expression 0-6 in the weekdays field will not result in only Saturdays or sundays, but will allow any weekday between 0 (Sunday) and 6 (Saturday), which includes 1 (Monday), 2 (Tuesday), …, which at the end is every weekday.
If you only want to include Sunday and Saturday, use 0,6 instead (comma instead of dash).
The logic that either day of month or weekday needs to match, comes from this note from crontab.org:
Note: The day of a command's execution can be specified by two fields -- day of month, and day of week. If both fields are restricted (ie, aren't *), the command will be run when either field matches the current time.
So you are right, that this check is wrong, when one of the fields is not restricted.
from cron-schedule.
Hi Pascal, 🙈 damn that was a silly typo. I'm using 0,6
not 0-6
(edited now). Sorry for the confusion. Thanks for the quick reply.
Ah, thanks for the spec note, now the brackets and the OR make sense. This just needs another *
check 👌
from cron-schedule.
🎉 This issue has been resolved in version 3.0.6 🎉
The release is available on:
Your semantic-release bot 📦🚀
from cron-schedule.
Related Issues (20)
- Issue. with Quarterly Cron Schedules HOT 2
- Cron expression '*/0 * * * *' hangs while parsing HOT 3
- this package could not be loaded into a non-babel, native esm node.js environment HOT 2
- year support is needed HOT 2
- Error on every weekday HOT 1
- Incomplete parsing of ranges (n-n, n-[n+1]) HOT 1
- The automated release is failing 🚨 HOT 2
- Dependency Dashboard
- Confusion on Scheduling a Cron Task HOT 1
- Weekday range to sunday edge case HOT 3
- Type definitions can fail to load when loading in a 'esmodule-mode' project HOT 2
- Build issue for scheduler import, with Vite HOT 9
- es2022 vs es2022 targeting? HOT 1
- Incorrect values returned for getPrevDate HOT 2
- The automated release is failing 🚨 HOT 1
- Seconds are rounded to 0 HOT 7
- Cron Schedule Manager HOT 2
- Cron Job Task Issue HOT 5
- Error handling for scheduled tasks HOT 1
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 cron-schedule.