简体   繁体   中英

Fire and forget AWS step function from lambda

I would like to trigger step function async through the lambda (python boto3).

Can we achieve this?

Looking at the below code, it looks like its not async.

client = boto3.client(STEP_FUNCTIONS)
client.start_execution(
    stateMachineArn=DATAPROCESS_STATE_MACHINE,
    name=STATEMACHINE_EXECUTION_NAME,
    input=json.dumps(state_machine_input)
)

Any suggestions or insights would be appreciated.

Triggering the step functions execution (as you did) is async - calling start_execution will not wait until the state machine finish, but returns immediately.

The response specifies only if the state machine execution was triggered successfuly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM