java - Amazon Simple Workflow - Given workflowID List all executions -
workflow when started again, same workflowid, gets different runid. there way retrieve such executions(containing different runid) of given workflow id?
i explored listclosedworkflowexecutionsrequest
api lists workflow executions, not particular workflowid.
problem trying solve is: there many workflows failed reason. in restarting process, didn't include correct time filter , few of them restarted while few got skipped. trying is, list failed workflow ids using listclosedworkflowexecutionsrequest
. each workflowid, fetch executions , if latest of them successful, skip else restart.
i little new swf there better way accomplish same?
thanks
yes, possible filter workflowid described in how state of workflowexecution if have workflowid in amazon swf.
the answer on line [7] , [9] in example, executions()
method call. use case though, since want closed executions, you'll alter method call include closed=true
. so, in order closed executions in 24hours (the default):
in [7]: domain.executions(closed=true)
and closed executions filtered workflow id:
in [9]: domain.executions(workflow_id='my_wf_id', closed=true)
if you're not using boto.swf
alternative library instead, refer api docs necessary parameters pass listclosedworkflowexecutions api.
Comments
Post a Comment