Bert Blommers
7693d77333
Remove Py2 support ( #3915 )
2021-07-26 07:40:39 +01:00
khneal
8b523c3fe1
EMR and SWF - add arn to response ( #3873 )
...
* emr: add ClusterArn to describe_cluster response
* emr: add ClusterArn to list_clusters response
* emr: add ClusterArn to put_auto_scaling_policy response
* emr: add ClusterArn to run_job_flow response
* emr: rename property "cluster_arn" to simply "arn"
* emr: generalize arn for account_id and region
* swf: add arn to list_domains response
* black reformat source code
* fix double import
* swf: require region on Domain object
Co-authored-by: Kevin Neal <Kevin_Neal@intuit.com>
2021-04-23 15:20:36 +01:00
redparham
b60de10c79
Fix heartbeatTimeout of NONE and polling responses when there are no tasks ( #3680 )
...
* fix heartbeatTimeout of NONE resulting in ValueError and polling returning empty string taskToken when it shouldn't be returned
* fix expected taskToken in impacted tests
Co-authored-by: Clint Parham <cparham@aligntech.com>
2021-02-12 13:01:42 +00:00
Laurie O
916add9ac5
Add SWF domain and type undeprecation
...
Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
2020-03-05 23:37:17 +10:00
Bert Blommers
f8af496445
Merge pull request #2769 from EpicWink/swf-empty-task
...
Return empty task-token on no-task
2020-02-25 17:05:16 +00:00
Laurie O
209c999706
Keep track of previous started event ID
...
Closes #2107
Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
2020-02-26 01:08:03 +10:00
Laurie O
369285b7ca
Don't 0-default previous started event ID
...
Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
2020-02-26 01:06:58 +10:00
Laurie O
002683fd13
Return empty task-token on no-task
...
To match the SWF documentation, an empty task is one where the
task-token is the empty string, rather than being a nonexistant key
Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
2020-02-26 00:19:39 +10:00
Laurie O
3500e7d5d3
Styling
2020-02-18 23:00:37 +10:00
Laurie O
979d20753c
Support more defaults in SWF workflow registration
...
SWF workflow type now keeps track of the default task-priority and
default AWS Lambda role, set at workflow registration.
2020-02-18 21:59:06 +10:00
Laurie O
353ad631f0
Include closed execution extra info
...
Include 'closeStatus' and 'closeTimestamp' when describing SWF workflow
execution using 'describe_workflow_execution'
Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
2020-02-15 01:23:09 +10:00
gruebel
9d9b620878
Fixed linter errors
2019-12-26 21:03:49 +01:00
gruebel
d7ba355a65
Add missing regions to all services
2019-12-26 17:12:22 +01:00
Asher Foa
3bb31c84fd
Fix some typos
2019-11-16 12:31:45 -08:00
Asher Foa
96e5b1993d
Run black on moto & test directories.
2019-10-31 10:36:05 -07:00
Chih-Hsuan Yen
18173a5951
Replace # flake8: noqa
with # noqa
...
The former syntax is actually a mis-use and rejected since Flake8 3.6
[1].
[1] https://gitlab.com/pycqa/flake8/merge_requests/219
2019-10-27 20:41:22 +08:00
George Ionita
3cede60f5b
improved SWF support
2017-12-23 05:45:05 +02:00
Steve Pulec
6d422d1f37
Add BaseModel to all models.
2017-03-11 23:41:12 -05:00
Steve Pulec
f37bad0e00
Lints.
2017-02-23 21:37:43 -05:00
Steve Pulec
cad185c74d
Cleanup headers and encoding.
2017-02-16 22:51:04 -05:00
Steve Pulec
fde721bed7
Testing new version of decorator.
2017-02-15 22:35:45 -05:00
Steve Pulec
d3df810065
Generalize decorator code.
2017-02-12 00:22:29 -05:00
Ian Fillion-de Kiewit
4e0affc734
Fix date validation
2016-02-08 10:33:33 -05:00
Ian Fillion-de Kiewit
7fd3daa524
Fix python 3.3 tests
2016-02-08 10:14:07 -05:00
Ian Fillion-de Kiewit
0fa7f83270
Fix time checking and tests
2016-02-05 17:33:33 -05:00
Ian Fillion-de Kiewit
2389b95ee6
remove leftover ipdb
2016-02-05 15:38:36 -05:00
Ian Fillion-de Kiewit
d31105889e
Add list_closed_workflow_executions and make validation/filtering on list_open_workflow_executions better
2016-02-05 15:35:46 -05:00
Ian Fillion-de Kiewit
93120927f7
Add list_open_workflow_executions endpoint
2016-02-04 17:14:33 -05:00
Ian Fillion-de Kiewit
129b4faff8
Fix style issues
2016-02-02 14:02:37 -05:00
Steve Pulec
a53a97d136
Cleanup SWF to use HTTP exceptions so that the standalone server will work. Closes #495 .
2016-01-17 18:00:57 -05:00
Steve Pulec
705ec314a3
Cleanup different places using unix_time()
2015-11-27 14:14:40 -05:00
Jean-Baptiste Barth
566a90800e
Make SWF events formatting more generic
...
(suggested in @spulec review)
2015-11-23 14:52:16 +01:00
Jean-Baptiste Barth
45437368b2
Move SWF type checks to response object
...
(suggested in @spulec review)
2015-11-23 12:41:44 +01:00
Jean-Baptiste Barth
78ea7967ad
Remove overriden SWFResponse.call_action() thanks to 32dd72f
...
Not necessary anymore: 32dd72f6b7
2015-11-19 11:46:54 +01:00
Jean-Baptiste Barth
26980f41a6
Replace globals() call with a static mapping
...
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
6b581edb55
Use datetime.utcnow() instead of datetime.now()
...
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
5f0684fca5
Use dict.values() instead of dict.items() where possible
...
(suggested in @spulec review)
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
de646cf7ac
Fix python 3 compatibility: filter() returns an iterator now
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
248975d4e6
Improve SWF timeouts processing: now processed in order, one by one
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
7f2cbb79b0
Refactor SWF workflow execution to ease next timeout change
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
6027bf15c1
Move some timeout conditionals to concerned models
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
d007dfe3ff
Remove process_timeouts() method in favor of timeout(<Timeout>) and a helper for tests
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
65c35bfa69
Make timeout events appear at the right time in workflow history
2015-11-19 11:45:27 +01:00
Jean-Baptiste Barth
d618585790
Refactor timeouts processing so it will be easier to compute them in order
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
61bb550052
Ensure activity and decision tasks cannot progress on a closed workflow
...
This is a second barrier because I'm a little nervous about this and I
don't want moto/swf to make any activity progress while in the real
world service, it's strictly impossible once the execution is closed.
Python doesn't seem to have any nice way of freezing an object so here
we go with a manual boundary...
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
65c95ab5bc
Ensure activity and decision tasks cannot timeout on a closed workflow
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
9c3996ff58
Add WorkflowExecution.open to clarify code in some places
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
f38d23e483
Implement start to close timeout on SWF workflow executions
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
86973f2b87
Implement start to close timeout on SWF decision tasks
2015-11-19 11:45:26 +01:00
Jean-Baptiste Barth
b386495520
Use list comprehensions instead of filter() for easier moto/swf python 3.x compatibility
2015-11-19 11:45:26 +01:00