Skip to content

Commit

Permalink
Added condition to skip message with Test
Browse files Browse the repository at this point in the history
Added condition to skip message with Test
  • Loading branch information
v-mchatla committed Oct 16, 2023
1 parent 89cfa70 commit c98835c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def process_events(client: oci.streaming.StreamClient, stream_id, initial_cursor
return

for message in get_response.data:
if message:
if message and message != 'Test':
event = b64decode(message.value.encode()).decode()
logging.info('event details {}'.format(event))
event = json.loads(event)
Expand Down
Binary file not shown.

0 comments on commit c98835c

Please sign in to comment.