funktor 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +18 -3
  3. data/funktor-testapp/Gemfile.lock +2 -2
  4. data/funktor-testapp/app/services/job_flood.rb +1 -1
  5. data/funktor-testapp/app/workers/single_thread_audit_worker.rb +3 -0
  6. data/funktor-testapp/funktor_config/environment.yml +2 -2
  7. data/funktor-testapp/funktor_config/function_definitions/default_queue_handler.yml +3 -1
  8. data/funktor-testapp/funktor_config/function_definitions/incoming_job_handler.yml +3 -1
  9. data/funktor-testapp/funktor_config/function_definitions/job_activator.yml +1 -2
  10. data/funktor-testapp/funktor_config/function_definitions/low_concurrency_queue_handler.yml +13 -0
  11. data/funktor-testapp/funktor_config/funktor.yml +25 -25
  12. data/funktor-testapp/funktor_config/iam_permissions/{single_thread_queue.yml → low_concurrency_queue.yml} +1 -1
  13. data/funktor-testapp/funktor_config/resources/cloudwatch_dashboard.yml +22 -17
  14. data/funktor-testapp/funktor_config/resources/default_queue.yml +2 -2
  15. data/funktor-testapp/funktor_config/resources/incoming_job_queue.yml +2 -2
  16. data/funktor-testapp/funktor_config/resources/jobs_table.yml +16 -4
  17. data/funktor-testapp/funktor_config/resources/low_concurrency_queue.yml +22 -0
  18. data/funktor-testapp/funktor_init.yml +16 -8
  19. data/funktor-testapp/lambda_event_handlers/{single_thread_queue_handler.rb → low_concurrency_queue_handler.rb} +0 -0
  20. data/funktor-testapp/serverless.yml +4 -3
  21. data/funktor.gemspec +3 -1
  22. data/lib/funktor/activity_tracker.rb +6 -2
  23. data/lib/funktor/cli/templates/funktor_config/function_definitions/incoming_job_handler.yml +3 -1
  24. data/lib/funktor/cli/templates/funktor_config/function_definitions/job_activator.yml +1 -2
  25. data/lib/funktor/cli/templates/funktor_config/function_definitions/work_queue_handler.yml +3 -1
  26. data/lib/funktor/cli/templates/funktor_config/funktor.yml +6 -6
  27. data/lib/funktor/cli/templates/funktor_config/resources/cloudwatch_dashboard.yml +3 -2
  28. data/lib/funktor/cli/templates/funktor_config/resources/incoming_job_queue.yml +2 -2
  29. data/lib/funktor/cli/templates/funktor_config/resources/jobs_table.yml +16 -4
  30. data/lib/funktor/cli/templates/funktor_config/resources/work_queue.yml +2 -2
  31. data/lib/funktor/cli/templates/funktor_init.yml.tt +14 -8
  32. data/lib/funktor/cli/templates/serverless.yml +1 -0
  33. data/lib/funktor/incoming_job_handler.rb +11 -15
  34. data/lib/funktor/job.rb +50 -5
  35. data/lib/funktor/job_activator.rb +52 -26
  36. data/lib/funktor/shard_utils.rb +6 -0
  37. data/lib/funktor/version.rb +1 -1
  38. data/lib/funktor/web/application.rb +139 -0
  39. data/lib/funktor/web/views/index.erb +3 -0
  40. data/lib/funktor/web/views/layout.erb +58 -0
  41. data/lib/funktor/web/views/processing.erb +29 -0
  42. data/lib/funktor/web/views/queued.erb +29 -0
  43. data/lib/funktor/web/views/retries.erb +35 -0
  44. data/lib/funktor/web/views/scheduled.erb +26 -0
  45. data/lib/funktor/web/views/stats.erb +9 -0
  46. data/lib/funktor/web/views/table_stats_with_buttons.erb +11 -0
  47. data/lib/funktor/web.rb +1 -0
  48. data/lib/funktor/work_queue_handler.rb +41 -0
  49. data/lib/funktor/worker/funktor_options.rb +3 -1
  50. data/lib/funktor/worker.rb +8 -11
  51. data/lib/funktor.rb +16 -16
  52. metadata +46 -6
  53. data/funktor-testapp/funktor_config/function_definitions/single_thread_queue_handler.yml +0 -11
  54. data/funktor-testapp/funktor_config/resources/single_thread_queue.yml +0 -22
@@ -1,22 +0,0 @@
1
- Resources:
2
- SingleThreadQueue:
3
- Type: AWS::SQS::Queue
4
- Properties:
5
- QueueName: ${self:custom.funktor.SingleThreadQueueName}
6
- VisibilityTimeout: 300
7
- RedrivePolicy:
8
- deadLetterTargetArn:
9
- "Fn::GetAtt": [ SingleThreadDeadLetterQueue, Arn ]
10
- maxReceiveCount: 5
11
- SingleThreadDeadLetterQueue:
12
- Type: AWS::SQS::Queue
13
- Properties:
14
- QueueName: ${self:custom.funktor.SingleThreadDeadJobQueueName}
15
-
16
- Outputs:
17
- SingleThreadQueueUrl:
18
- Value:
19
- Ref: SingleThreadQueue
20
- SingleThreadDeadLetterQueueUrl:
21
- Value:
22
- Ref: SingleThreadDeadLetterQueue