allow ability to skip event notification

This commit is contained in:
Emil Lerch 2020-11-25 12:15:11 -08:00
parent bbc4920c4c
commit e0bc85503b
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -81,13 +81,14 @@ def process_changes(changed):
printerr('DDB did not process item with url %s' %
item['PutRequest']['Item']['PK']['S'])
unprocessed[item['PutRequest']['Item']['PK']['S']] = True
response = events.put_events(
Entries=[create_event(item) for item in
filter(lambda k: k['url'] not in unprocessed, changed)]
)
if response['FailedEntryCount'] > 0:
for entry in response['Entries']:
printerr(json.dumps(entry))
if event_bus_name != '':
response = events.put_events(
Entries=[create_event(item) for item in
filter(lambda k: k['url'] not in unprocessed, changed)]
)
if response['FailedEntryCount'] > 0:
for entry in response['Entries']:
printerr(json.dumps(entry))
def make_requests(urls, existing_etags):