Guest User

Untitled

a guest
Oct 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import boto3
  2. import time
  3. import json
  4.  
  5. region = 'us-east-1'
  6. activity_arn = 'arn:aws:states:us-east-1:754185655346:activity:Process_Imagery'
  7.  
  8. while True:
  9. client = boto3.client('stepfunctions', region_name=region)
  10. response = client.get_activity_task(activityArn=activity_arn,
  11. workerName='imagery_processor')
  12. activity_token = response['taskToken']
  13. input_params = json.loads(response['input'])
  14.  
  15. print("================")
  16. print(input_params)
  17. client.send_task_success(taskToken=activity_token, output='true')
Add Comment
Please, Sign In to add comment