meteor-synced-cron | It supports syncronizing jobs | Cron Utils library
kandi X-RAY | meteor-synced-cron Summary
kandi X-RAY | meteor-synced-cron Summary
A simple cron system for Meteor. It supports syncronizing jobs between multiple processes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create logger .
- Schedule timeout with a timeout .
meteor-synced-cron Key Features
meteor-synced-cron Examples and Code Snippets
Community Discussions
Trending Discussions on meteor-synced-cron
QUESTION
I have one cron which I want to run around 6:00 am in IST and same cron should also run same time 6:00 am EAT.
I am using synced-cron for running cron jobs on my meteor server.
If I have only few timezones to support I would have ran this cron 2 times a day and it would have worked but I have multiple timezones to support in future. How can I automate same thing with little effort.
...ANSWER
Answered 2018-Apr-13 at 06:10A cronjob can be created with an specific timezone, here is an example:
* 1 * * * TZ="America/New_York" /command > /dev/null 2>&1
QUESTION
What I'm up to is to get the jenkins job details and store it in mongo DB every "X" minutes. I have to make an HTTP.call(JenkinsURL)
which I know how to do. My problem is calling it for specific intervals.
ANSWER
Answered 2017-Dec-18 at 07:52Is there any method in meteor which can make this possible to run a specific code to be run for every X min??
Yes, there is.
Meteor.setInterval
that can be used to do something repetitively every X interval of time.
You can put your HTTP call within it on the server. Eg:
QUESTION
I have a Meteor app that uses Apollo and I am using SyncedCron (https://github.com/percolatestudio/meteor-synced-cron) to schedule an update operation on the database every 2 hours.
Every two hours, fetch X data from some external API and store in Y collection of the database. Rinse and repeat.
My question is this: should this update operation be implemented as a graphQL mutation, and called server-side from within the cron job (if so, how do you do it?!), or should this be implemented as a normal JS function since it will only ever execute on the server?
All the mutation examples I can find online are invoked from the client by wrapping your View component in a graphql-enabled HOC.
Perhaps I am just misunderstanding the scope of mutations, and the larger question here is whether or not mutations CAN be invoked from the server, or if they are client-side only.
Hoping to find some clarification here on mutation best practices. Thanks!
...ANSWER
Answered 2017-Jun-05 at 19:36I think you would just use axios (http call) or a meteor method here. I think mutations are just for browser-to-server.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install meteor-synced-cron
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page