Skip to content

Commit

Permalink
Fixes bug 916159 Adds a 5 minute window to query
Browse files Browse the repository at this point in the history
  • Loading branch information
selenamarie committed Sep 13, 2013
1 parent ae16c7b commit 2f45d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/crons/cron_submitter.sh
Expand Up @@ -38,7 +38,7 @@ function submit_dump() {
(
if $(flock -n 200)
then
SQL="SELECT uuid FROM raw_crashes ORDER BY date_processed DESC LIMIT $NUM_TO_SUBMIT"
SQL="SELECT uuid FROM raw_crashes WHERE (date_processed >= (now() - '5 min'::interval)) AND date_processed < now() ORDER BY date_processed DESC LIMIT $NUM_TO_SUBMIT"
UUIDS=$(psql -t -U $databaseUserName -h $databaseHost $databaseName -c "$SQL" | tr -d '^ ')

for UUID in ${UUIDS[@]}
Expand Down

0 comments on commit 2f45d8b

Please sign in to comment.