Skip to content

Commit

Permalink
Merge pull request #193 from apinf/hotfix/synced-cron
Browse files Browse the repository at this point in the history
Hotfix/synced cron
  • Loading branch information
elijah committed Jul 2, 2015
2 parents 1fb988e + 93f1b22 commit bd67a61
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 34 deletions.
62 changes: 32 additions & 30 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ accounts-twitter@1.0.4
accounts-ui@1.1.5
accounts-ui-unstyled@1.1.7
alanning:roles@1.2.13
aldeed:autoform@5.1.2
aldeed:autoform@5.3.0
aldeed:collection2@2.3.3
aldeed:simple-schema@1.3.2
aldeed:tabular@1.0.6
aldeed:simple-schema@1.3.3
aldeed:tabular@1.2.0
aldeed:template-extension@3.4.3
autoupdate@1.2.1
base64@1.0.3
Expand All @@ -20,7 +20,7 @@ blaze@2.1.2
blaze-tools@1.0.3
boilerplate-generator@1.0.3
bruz:github-api@0.2.4_1
brylie:api-umbrella@0.2.4
brylie:api-umbrella@0.2.8
callback-hook@1.0.3
cfs:access-point@0.1.49
cfs:base-package@0.0.30
Expand All @@ -42,10 +42,11 @@ cfs:upload-http@0.0.20
cfs:worker@0.1.4
chart:chart@1.0.1-beta.4
check@1.0.5
cmather:handlebars-server@0.2.0
cmather:handlebars-server@2.0.0
coffeescript@1.0.6
comments@0.1.0
dburles:collection-helpers@1.0.3
dburles:google-maps@1.1.1
ddp@1.1.0
deps@1.0.7
ejson@1.0.6
Expand All @@ -62,43 +63,43 @@ html-tools@1.0.4
htmljs@1.0.4
http@1.1.0
id-map@1.0.3
iron:controller@1.0.7
iron:core@1.0.7
iron:dynamic-template@1.0.7
iron:layout@1.0.7
iron:location@1.0.7
iron:middleware-stack@1.0.7
iron:router@1.0.7
iron:url@1.0.7
iron:controller@1.0.8
iron:core@1.0.8
iron:dynamic-template@1.0.8
iron:layout@1.0.8
iron:location@1.0.9
iron:middleware-stack@1.0.9
iron:router@1.0.9
iron:url@1.0.9
jparker:crypto-core@0.1.0
jparker:crypto-md5@0.1.1
jparker:gravatar@0.3.1
jquery@1.11.3_2
json@1.0.3
juliancwirko:s-alert@2.2.0
juliancwirko:s-alert-stackslide@1.1.0
juliancwirko:s-alert@2.4.1
juliancwirko:s-alert-stackslide@1.1.3
launch-screen@1.0.2
less@1.0.14
livedata@1.0.13
localstorage@1.0.3
logging@1.0.7
manuelschoebel:ms-seo@0.4.1
materialize:materialize@0.96.1
materialize:materialize@0.97.0
meteor@1.1.6
meteor-platform@1.2.2
meteorhacks:async@1.0.0
meteorhacks:meteorx@1.0.2
meteorhacks:npm@1.3.0
meteorhacks:subs-manager@1.3.0
meteorhacks:subs-manager@1.4.0
meteorhacks:unblock@1.1.0
meteorspark:util@0.2.0
minifiers@1.1.5
minimongo@1.0.8
mobile-status-bar@1.0.3
momentjs:moment@2.9.0
momentjs:moment@2.10.3
mongo@1.1.0
mongo-livedata@1.0.8
mpowaga:string-template@0.1.0
mrt:googlemaps@0.1.1
mrt:moment@2.8.1
multiply:iron-router-progress@1.0.1
natestrauser:animate-css@3.2.6
Expand Down Expand Up @@ -131,7 +132,7 @@ spacebars@1.0.6
spacebars-compiler@1.0.6
spiderable@1.0.7
srp@1.0.3
tap:i18n@1.4.1
tap:i18n@1.5.0
templating@1.1.1
timmyg:wow@1.0.1
tracker@1.0.7
Expand All @@ -140,18 +141,19 @@ twbs:bootstrap@3.3.5
twitter@1.1.4
ui@1.0.6
underscore@1.0.3
underscorestring:underscore.string@3.0.3
underscorestring:underscore.string@3.0.3_1
url@1.0.4
user-thumbs@0.0.8
useraccounts:bootstrap@1.9.1
useraccounts:core@1.9.1
useraccounts:bootstrap@1.11.1
useraccounts:core@1.11.1
webapp@1.2.0
webapp-hashing@1.0.3
yogiben:admin@1.1.1
yogiben:autoform-file@0.2.5
yogiben:autoform-map@0.0.4
yogiben:autoform-modals@0.3.3
yogiben:helpers@0.0.5
yogiben:mixpanel@0.0.6
yogiben:pretty-email@0.0.3
yogiben:admin@1.2.0
yogiben:autoform-file@0.2.7
yogiben:autoform-map@0.1.3
yogiben:autoform-modals@0.3.5
yogiben:helpers@0.0.6
yogiben:mixpanel@0.0.7
yogiben:pretty-email@0.0.6
zimme:active-route@2.0.4_1
zimme:iron-router-active@1.0.4
6 changes: 3 additions & 3 deletions server/methods/elasticSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ Meteor.methods({

// create the client
EsClientSource = new ElasticSearch.Client({
host: 'http://apinf.com:14002'
host: 'http://46.101.247.242:14002'
});

// make it fiber aware
EsClient = Async.wrap(EsClientSource, ['index', 'search']);

var searchQuery = EsClient.search({
index: 'api-umbrella-logs-v1-2014-12',
index: 'api-umbrella-logs-v1-2015-07',
type: 'log',
body: {
query: {
match_all: {}
},
size: 1000
size: 10000
}
});
if(searchQuery.hits.hits){
Expand Down
2 changes: 1 addition & 1 deletion server/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Meteor.startup(function () {
name: 'Sync API Umbrella Users and API Backends',
schedule: function(parser) {
// parser is a later.parse object
return parser.text('every 10 sec');
return parser.text('every 1 day');
},
job: function() {
Meteor.call("syncApiUmbrellaUsers");
Expand Down

0 comments on commit bd67a61

Please sign in to comment.