(msg)
| 203 | } |
| 204 | |
| 205 | def unpack_message(msg): |
| 206 | return ( |
| 207 | msg.message_attributes["path"]["StringValue"], |
| 208 | msg.body, |
| 209 | int(msg.message_attributes["line"]["StringValue"]), |
| 210 | ) |
| 211 | |
| 212 | print("-" * 88) |
| 213 | print("Welcome to the Amazon Simple Queue Service (Amazon SQS) demo!") |