Comments (4)
Hey man - thanks for the interest.
In the example that you used, it would be the same because there are no conflicting options.
However, in this case, there year would become 2037.
Jobs.add("sendReminderEmail", "[email protected]", "The future is here!", {
on: {
days: 1,
hours: 13,
year: 2036
},
in: {
minute: 13,
year: 1
}
});
But in this one, it would be 2036:
Jobs.add("sendReminderEmail", "[email protected]", "The future is here!", {
in: {
minute: 13,
year: 1
},
on: {
days: 1,
hours: 13,
year: 2036
},
});
However, it maybe best to omit that part from the instructions. The thing is, I'm planning to enable functions as an input, so that's where it might get tricky:
Jobs.add("sendReminderEmail", "[email protected]", "The future is here!", {
in: {
minute: 13,
year: 1
},
on: {
days: 1,
hours: 13,
year: function () {
if (x) {
return 2037
}
}
},
});
from stevejobs.
Thanks! It's clear now. 👍
from stevejobs.
Hey, I think the package is no longer supported, but I haven't find anything better for this than using LaterJS.
Supporting that may be a different package? SteveJobs-meteor-jobs-queue-laterjs
?
from stevejobs.
@luixal not sure which package we are discussing - but maybe this is relevant: Jobs.run
now supports a date
field so you can plug in any library in there.
Going to close this ticket out as it seems old/resolved - but feel free to open a new one.
from stevejobs.
Related Issues (20)
- List of available jobs to be run HOT 5
- Self is not defined error in 4.2.0 HOT 1
- Jobs Stuck Pending on Galaxy HOT 3
- server/imports/utilities/collection/index.js --> Cannot read property 'parent' of null HOT 4
- Prevent queue from stopping after failure HOT 8
- How to resume pending jobs when the server is restarted? HOT 1
- Missing index?
- Meteor 3.0 support (Fibers-free)
- Jobs.find not part of Atmosphere package HOT 4
- So what is the date format that's valid HOT 1
- Collection hooks HOT 1
- Version 3 causing rendering issue on instagram browser on iPhone HOT 2
- Possible to convert this to a pure Node.js package removing Meteor? HOT 3
- jobs are not run consecutively HOT 2
- Jobs: Unable to execute job - queue is busy: HOT 6
- V3.1.1 - Job runner stopped, jobs are not running anymore HOT 13
- Jobs: Unable to execute job - queue is busy, randomly appearing. HOT 2
- async / await Failure HOT 7
- Know if a queue is still processed HOT 2
- work with meteor 2.3 ? 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 stevejobs.