completed full run script
This commit is contained in:
@@ -45,19 +45,19 @@ class sendToSQS(object):
|
||||
print(msg['MessageId'])
|
||||
|
||||
|
||||
inst = sendToSQS.createSession(
|
||||
profileName='plex-aws',
|
||||
queueURL='https://sqs.eu-west-1.amazonaws.com'
|
||||
'/745437999005/slack-bot.fifo',
|
||||
)
|
||||
# inst = sendToSQS.createSession(
|
||||
# profileName='plex-aws',
|
||||
# queueURL='https://sqs.eu-west-1.amazonaws.com'
|
||||
# '/745437999005/slack-bot.fifo',
|
||||
# )
|
||||
|
||||
instM = (
|
||||
getTrafficInfo.getTrafficURL('M62')
|
||||
.findIncidents()
|
||||
.getIncidentInformation()
|
||||
.generateOutput()
|
||||
)
|
||||
# instM = (
|
||||
# getTrafficInfo.getTrafficURL('M62')
|
||||
# .findIncidents()
|
||||
# .getIncidentInformation()
|
||||
# .generateOutput()
|
||||
# )
|
||||
|
||||
for _ in range(0, 5):
|
||||
for item in instM.output:
|
||||
inst.sendMessage(message=item, messageGroupId='slack-bot-M62')
|
||||
# for _ in range(0, 5):
|
||||
# for item in instM.output:
|
||||
# inst.sendMessage(message=item, messageGroupId='slack-bot-M62')
|
||||
|
||||
Reference in New Issue
Block a user