Skip to content

Instantly share code, notes, and snippets.

@oelesinsc24
Created February 12, 2020 16:32
Show Gist options
  • Save oelesinsc24/f2c77bc9b696c5b295b333ba4ad3006f to your computer and use it in GitHub Desktop.
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
## 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