jobs.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. "version": 2,
  3. "waiters": {
  4. "JobComplete": {
  5. "delay": 5,
  6. "operation": "GetItem",
  7. "maxAttempts": 60,
  8. "acceptors": [
  9. {
  10. "expected": "COMPLETED",
  11. "matcher": "path",
  12. "state": "success",
  13. "argument": "Item.JobStatus.S"
  14. },
  15. {
  16. "expected": "RUNNING",
  17. "matcher": "path",
  18. "state": "retry",
  19. "argument": "Item.JobStatus.S"
  20. },
  21. {
  22. "expected": "QUEUED",
  23. "matcher": "path",
  24. "state": "retry",
  25. "argument": "Item.JobStatus.S"
  26. },
  27. {
  28. "expected": "FORGET_COMPLETED_CLEANUP_IN_PROGRESS",
  29. "matcher": "path",
  30. "state": "retry",
  31. "argument": "Item.JobStatus.S"
  32. },
  33. {
  34. "expected": "FAILED",
  35. "matcher": "path",
  36. "state": "failure",
  37. "argument": "Item.JobStatus.S"
  38. },
  39. {
  40. "expected": "FIND_FAILED",
  41. "matcher": "path",
  42. "state": "failure",
  43. "argument": "Item.JobStatus.S"
  44. },
  45. {
  46. "expected": "FORGET_FAILED",
  47. "matcher": "path",
  48. "state": "failure",
  49. "argument": "Item.JobStatus.S"
  50. },
  51. {
  52. "expected": "FORGET_PARTIALLY_FAILED",
  53. "matcher": "path",
  54. "state": "failure",
  55. "argument": "Item.JobStatus.S"
  56. },
  57. {
  58. "expected": "COMPLETED_CLEANUP_FAILED",
  59. "matcher": "path",
  60. "state": "failure",
  61. "argument": "Item.JobStatus.S"
  62. },
  63. {
  64. "expected": 404,
  65. "matcher": "status",
  66. "state": "retry"
  67. }
  68. ]
  69. },
  70. "JobFinished": {
  71. "delay": 5,
  72. "operation": "GetItem",
  73. "maxAttempts": 60,
  74. "acceptors": [
  75. {
  76. "expected": "COMPLETED",
  77. "matcher": "path",
  78. "state": "success",
  79. "argument": "Item.JobStatus.S"
  80. },
  81. {
  82. "expected": "RUNNING",
  83. "matcher": "path",
  84. "state": "retry",
  85. "argument": "Item.JobStatus.S"
  86. },
  87. {
  88. "expected": "QUEUED",
  89. "matcher": "path",
  90. "state": "retry",
  91. "argument": "Item.JobStatus.S"
  92. },
  93. {
  94. "expected": "FORGET_COMPLETED_CLEANUP_IN_PROGRESS",
  95. "matcher": "path",
  96. "state": "retry",
  97. "argument": "Item.JobStatus.S"
  98. },
  99. {
  100. "expected": "FAILED",
  101. "matcher": "path",
  102. "state": "success",
  103. "argument": "Item.JobStatus.S"
  104. },
  105. {
  106. "expected": "FIND_FAILED",
  107. "matcher": "path",
  108. "state": "success",
  109. "argument": "Item.JobStatus.S"
  110. },
  111. {
  112. "expected": "FORGET_FAILED",
  113. "matcher": "path",
  114. "state": "success",
  115. "argument": "Item.JobStatus.S"
  116. },
  117. {
  118. "expected": "FORGET_PARTIALLY_FAILED",
  119. "matcher": "path",
  120. "state": "success",
  121. "argument": "Item.JobStatus.S"
  122. },
  123. {
  124. "expected": "COMPLETED_CLEANUP_FAILED",
  125. "matcher": "path",
  126. "state": "success",
  127. "argument": "Item.JobStatus.S"
  128. },
  129. {
  130. "expected": 404,
  131. "matcher": "status",
  132. "state": "retry"
  133. }
  134. ]
  135. },
  136. "JobExists": {
  137. "delay": 5,
  138. "operation": "GetItem",
  139. "maxAttempts": 30,
  140. "acceptors": [
  141. {
  142. "expected": 200,
  143. "matcher": "status",
  144. "state": "success"
  145. },
  146. {
  147. "expected": 404,
  148. "matcher": "status",
  149. "state": "retry"
  150. }
  151. ]
  152. }
  153. }
  154. }