Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

daily scripts

Some scripts present in this directory have the daily- prefix, this mean they are executed daily and they operate on the previous day

hourly scripts

guess what? they operate about the previous hour

Common elements

DAYSAGO is an environment variable that might used to execute the script $var * 24 hours back in time. default is 1 (the day before) HOURSAGO is an environment variable that might used to execute the script $hvar hours back in time, default is 1 (the hour before)

HOURSAFTER is an environment variable mutually exclusive with the two earlier, takes a number of hours after the fbtrex moment 0 ("2016-12-09")

Numbered scripts

the script starting with a number, are incremental ad executed only during data migrations.

Remind

DEBUG=* KEYS=postType-postType,type START=2017-01-17  mongo-scripts/parser-error-mngmnt.js

Reminder realitycheck

for i in `seq 196 300`; do DEBUG=*,-lib:* SKIP=$(($i*100)) BLOCK=100 CONCURRENCY=5 DAYS=30 DAYSAGO=30 node mongo-scripts/realityreduction.js; done