Skip to content

Commit

Permalink
feature: sleep to avoid http 429,split out attendees and page properly
Browse files Browse the repository at this point in the history
  • Loading branch information
abbas123456 committed Feb 8, 2021
1 parent 81e234a commit 7dd98a3
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 126 deletions.
4 changes: 3 additions & 1 deletion core/app/app_outgoing.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ async def ingest_feeds(context, feeds):
context, feed), min_duration=min_duration
)
for feed in feeds
for (ingest_func, min_duration) in ((ingest_full, 120), (ingest_updates, 0))
for (ingest_func, min_duration) in (
(ingest_full, feed.full_ingest_interval), (ingest_updates, 0)
)
])


Expand Down
12 changes: 12 additions & 0 deletions core/app/app_outgoing_elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ async def create_activities_index(context, index_name):
},
'object.geocoordinates': {
'type': 'geo_point'
},
'object.dit:status': {
'type': 'keyword'
},
'object.dit:public': {
'type': 'boolean'
}
},
}),
Expand Down Expand Up @@ -435,6 +441,12 @@ async def create_objects_index(context, index_name):
},
'geocoordinates': {
'type': 'geo_point'
},
'dit:status': {
'type': 'keyword'
},
'dit:public': {
'type': 'boolean'
}
},
}),
Expand Down

0 comments on commit 7dd98a3

Please sign in to comment.