Created
February 12, 2020 16:32
-
-
Save oelesinsc24/f2c77bc9b696c5b295b333ba4ad3006f to your computer and use it in GitHub Desktop.
Get Processing Job status with AWS Step Functions Data Science SDK Lambda Step
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## We poll for the processing Job at intervals | |
| get_processing_job_status = LambdaStep( | |
| state_id="GetDataProcessingJob", | |
| parameters={ | |
| "FunctionName": "arn:aws:lambda:eu-west-1:961618251897:function:GetProcessingJobStatus", #replace with the name of the function you created | |
| "Payload": { | |
| "JobName": create_processing_job_step.output()['Payload']['JobName'] | |
| } | |
| } | |
| ) | |
| check_job_wait_state = Wait( | |
| state_id="Wait", | |
| seconds=60 | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment