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.

Revisions

  1. oelesinsc24 created this gist Feb 12, 2020.
    15 changes: 15 additions & 0 deletions get-processing-job-status.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    ## 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
    )