lex-scheduler 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +21 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +21 -0
- data/README.md +6 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lex-scheduler.gemspec +34 -0
- data/lib/legion/extensions/scheduler.rb +16 -0
- data/lib/legion/extensions/scheduler/actors/run_scheduler.rb +23 -0
- data/lib/legion/extensions/scheduler/actors/schedule_task.rb +23 -0
- data/lib/legion/extensions/scheduler/data/migrations/001_schedule_table.rb +24 -0
- data/lib/legion/extensions/scheduler/data/migrations/002_schedule_log.rb +19 -0
- data/lib/legion/extensions/scheduler/data/migrations/003_schedule_indexes.rb +8 -0
- data/lib/legion/extensions/scheduler/data/migrations/004_schedule_logs_indexes.rb +7 -0
- data/lib/legion/extensions/scheduler/data/migrations/005_add_payload_column.rb +7 -0
- data/lib/legion/extensions/scheduler/data/models/schedule.rb +7 -0
- data/lib/legion/extensions/scheduler/data/models/schedule_log.rb +7 -0
- data/lib/legion/extensions/scheduler/runners/schedule.rb +43 -0
- data/lib/legion/extensions/scheduler/transport/messages/refresh.rb +35 -0
- data/lib/legion/extensions/scheduler/transport/messages/send_task.rb +26 -0
- data/lib/legion/extensions/scheduler/transport/queues/schedule.rb +18 -0
- data/lib/legion/extensions/scheduler/version.rb +9 -0
- metadata +156 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c22cca866470f3df8eb371b2a467fbdbe6d9b9a37ff81eba37705640a5c813e4
|
4
|
+
data.tar.gz: f502c95d2cbb51c45fe052493603db98dbc01cc21970a8650353736cfbcb91f3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a3ca95510c2fb415ab488727cbe87a11d32d1387abcf156329f473f1f93b3ebf3b4133251900a4756360cbb13544f42ff2b90058aa22735098f5400d4e0447a3
|
7
|
+
data.tar.gz: 4112f741dc77173ed6e52cc77dd718b0d5db4fd0b389509e0e6080b1bf785bc800e00cc1ec1b92bcc1805c52d3bd7471e587b07df515d16f4e76a62154257af7
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Layout/LineLength:
|
2
|
+
Max: 120
|
3
|
+
Metrics/MethodLength:
|
4
|
+
Max: 30
|
5
|
+
Metrics/ClassLength:
|
6
|
+
Max: 1500
|
7
|
+
Metrics/BlockLength:
|
8
|
+
Max: 50
|
9
|
+
Metrics/AbcSize:
|
10
|
+
Max: 50
|
11
|
+
Style/Documentation:
|
12
|
+
Enabled: false
|
13
|
+
AllCops:
|
14
|
+
TargetRubyVersion: 2.5
|
15
|
+
NewCops: enable
|
16
|
+
Style/FrozenStringLiteralComment:
|
17
|
+
Enabled: false
|
18
|
+
Naming/FileName:
|
19
|
+
Enabled: false
|
20
|
+
Style/ClassAndModuleChildren:
|
21
|
+
Enabled: false
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at matthewdiverson@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Esity
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'legion/extensions/scheduler'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/legion/extensions/scheduler/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'lex-scheduler'
|
7
|
+
spec.version = Legion::Extensions::Scheduler::VERSION
|
8
|
+
spec.authors = ['Esity']
|
9
|
+
spec.email = ['matthewdiverson@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'LEX::Scheduler'
|
12
|
+
spec.description = 'Schedules and manages delayed, async and cron style tasks'
|
13
|
+
spec.homepage = 'https://bitbucket.org/legion-io/lex-scheduler'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
|
16
|
+
|
17
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
+
spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/lex-scheduler'
|
19
|
+
spec.metadata['changelog_uri'] = 'https://bitbucket.org/legion-io/lex-scheduler/src/master/CHANGELOG.md'
|
20
|
+
|
21
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
22
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
|
+
end
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ['lib']
|
26
|
+
|
27
|
+
spec.add_dependency 'fugit', '>= 1.3.9'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'legionio'
|
30
|
+
spec.add_development_dependency 'rake'
|
31
|
+
spec.add_development_dependency 'rspec'
|
32
|
+
spec.add_development_dependency 'rubocop'
|
33
|
+
spec.add_development_dependency 'simplecov'
|
34
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'legion/extensions/scheduler/version'
|
4
|
+
require 'legion/extensions'
|
5
|
+
|
6
|
+
module Legion
|
7
|
+
module Extensions
|
8
|
+
module Scheduler
|
9
|
+
extend Legion::Extensions::Core
|
10
|
+
|
11
|
+
def data_required?
|
12
|
+
true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Legion::Extensions::Scheduler::Actor
|
2
|
+
class RunScheduler < Legion::Extensions::Actors::Every
|
3
|
+
def runner_function
|
4
|
+
'schedule_tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
def runner_class
|
8
|
+
Legion::Extensions::Scheduler::Runners::Schedule
|
9
|
+
end
|
10
|
+
|
11
|
+
def use_runner?
|
12
|
+
false
|
13
|
+
end
|
14
|
+
|
15
|
+
def check_subtask?
|
16
|
+
false
|
17
|
+
end
|
18
|
+
|
19
|
+
def generate_task?
|
20
|
+
false
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Legion::Extensions::Scheduler::Actor
|
2
|
+
class ScheduleTask < Legion::Extensions::Actors::Every
|
3
|
+
def runner_function
|
4
|
+
'push_refresh'
|
5
|
+
end
|
6
|
+
|
7
|
+
def runner_class
|
8
|
+
Legion::Extensions::Scheduler::Runners::Schedule
|
9
|
+
end
|
10
|
+
|
11
|
+
def use_runner?
|
12
|
+
false
|
13
|
+
end
|
14
|
+
|
15
|
+
def check_subtask?
|
16
|
+
false
|
17
|
+
end
|
18
|
+
|
19
|
+
def generate_task?
|
20
|
+
false
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Sequel.migration do
|
2
|
+
up do
|
3
|
+
run '
|
4
|
+
create table schedules (
|
5
|
+
id int auto_increment,
|
6
|
+
function_id int null,
|
7
|
+
active tinyint default 1 not null,
|
8
|
+
`interval` int null,
|
9
|
+
cron varchar(255) null,
|
10
|
+
name varchar(255) null,
|
11
|
+
description blob null,
|
12
|
+
task_ttl int null,
|
13
|
+
last_run datetime null,
|
14
|
+
created datetime default CURRENT_TIMESTAMP not null,
|
15
|
+
updated datetime null,
|
16
|
+
constraint schedules_pk
|
17
|
+
primary key (id)
|
18
|
+
);'
|
19
|
+
end
|
20
|
+
|
21
|
+
down do
|
22
|
+
drop_table :schedules
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Sequel.migration do
|
2
|
+
up do
|
3
|
+
run '
|
4
|
+
create table schedule_logs (
|
5
|
+
id int auto_increment,
|
6
|
+
schedule_id int not null,
|
7
|
+
status varchar(255) null,
|
8
|
+
time_queued datetime default CURRENT_TIMESTAMP not null,
|
9
|
+
task_id int null,
|
10
|
+
created datetime default CURRENT_TIMESTAMP not null,
|
11
|
+
updated datetime null,
|
12
|
+
constraint schedule_logs_pk primary key (id)
|
13
|
+
);'
|
14
|
+
end
|
15
|
+
|
16
|
+
down do
|
17
|
+
drop_table :schedule_logs
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Sequel.migration do
|
2
|
+
change do
|
3
|
+
add_index :schedules, :last_run, name: 'schedules_last_run_index'
|
4
|
+
add_index :schedules, :interval, name: 'schedules_interval_index'
|
5
|
+
add_index :schedules, :function_id, name: 'schedules_function_id_index'
|
6
|
+
add_index :schedules, :active, name: 'schedules_active_index'
|
7
|
+
end
|
8
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module Legion
|
2
|
+
module Extensions
|
3
|
+
module Scheduler
|
4
|
+
module Runners
|
5
|
+
module Schedule
|
6
|
+
include Legion::Extensions::Helpers::Transport
|
7
|
+
include Legion::Extensions::Helpers::Cache
|
8
|
+
include Legion::Extensions::Helpers::Data
|
9
|
+
|
10
|
+
include Legion::Extensions::Helpers::Lex
|
11
|
+
def push_refresh(**)
|
12
|
+
Legion::Extensions::Scheduler::Transport::Messages::Refresh.new.publish
|
13
|
+
end
|
14
|
+
|
15
|
+
def refresh(**)
|
16
|
+
Legion::Cache.set('scheduler_schedule_lock', Legion::Settings[:client][:name], 5)
|
17
|
+
end
|
18
|
+
|
19
|
+
def schedule_tasks(**)
|
20
|
+
return unless Legion::Cache.get('scheduler_schedule_lock') == Legion::Settings[:client][:name]
|
21
|
+
|
22
|
+
models_class::Schedule.where(active: 1).each do |row|
|
23
|
+
next unless row.values[:interval].positive?
|
24
|
+
next if (Time.now - row.values[:last_run]) < row.values[:interval]
|
25
|
+
|
26
|
+
send_task(function_id: row.values[:function_id], **Legion::JSON.load(row.values[:payload]))
|
27
|
+
row.update(last_run: Sequel::CURRENT_TIMESTAMP)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def send_task(**opts)
|
32
|
+
payload = {}
|
33
|
+
%i[runner_class function_id function debug args].each do |thing|
|
34
|
+
payload[thing] = opts[thing] if opts.key? thing
|
35
|
+
end
|
36
|
+
|
37
|
+
Legion::Extensions::Scheduler::Transport::Messages::SendTask.new(**payload).publish
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Legion::Extensions::Scheduler::Transport::Messages
|
2
|
+
class Refresh < Legion::Transport::Message
|
3
|
+
def routing_key
|
4
|
+
'schedule'
|
5
|
+
end
|
6
|
+
|
7
|
+
def type
|
8
|
+
'task'
|
9
|
+
end
|
10
|
+
|
11
|
+
def expiration
|
12
|
+
5000
|
13
|
+
end
|
14
|
+
|
15
|
+
def encrypt?
|
16
|
+
false
|
17
|
+
end
|
18
|
+
|
19
|
+
def message
|
20
|
+
{
|
21
|
+
function: 'refresh',
|
22
|
+
runner_class: 'Legion::Extensions::Scheduler::Runners::Schedule'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
def message_example
|
27
|
+
{ function: 'push_cluster_secret',
|
28
|
+
node_name: Legion::Settings[:client][:name],
|
29
|
+
queue_name: "node.#{Legion::Settings[:client][:name]}",
|
30
|
+
runner_class: 'Legion::Extensions::Node::Runners::Crypt',
|
31
|
+
# public_key: Base64.encode64(Legion::Crypt.public_key) }
|
32
|
+
public_key: Legion::Crypt.public_key }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Legion::Extensions::Scheduler::Transport::Messages
|
2
|
+
class SendTask < Legion::Transport::Message
|
3
|
+
def type
|
4
|
+
'task'
|
5
|
+
end
|
6
|
+
|
7
|
+
def message
|
8
|
+
{
|
9
|
+
args: @options[:args] || @options,
|
10
|
+
function: function.values[:name]
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
def routing_key
|
15
|
+
"#{function.runner.extension.values[:name]}.#{function.runner.values[:name]}.#{function.values[:name]}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def exchange
|
19
|
+
Legion::Transport::Exchange.new(function.runner.extension.values[:exchange])
|
20
|
+
end
|
21
|
+
|
22
|
+
def function
|
23
|
+
@function ||= Legion::Data::Model::Function[@options[:function_id]]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Legion::Extensions::Scheduler
|
2
|
+
module Transport
|
3
|
+
module Queues
|
4
|
+
class Schedule < Legion::Transport::Queue
|
5
|
+
def queue_options
|
6
|
+
{
|
7
|
+
arguments: {
|
8
|
+
'x-single-active-consumer': true,
|
9
|
+
'x-max-priority': 255,
|
10
|
+
'x-message-ttl': 5
|
11
|
+
},
|
12
|
+
auto_delete: false
|
13
|
+
}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lex-scheduler
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Esity
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: fugit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.3.9
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.3.9
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: legionio
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Schedules and manages delayed, async and cron style tasks
|
98
|
+
email:
|
99
|
+
- matthewdiverson@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".rubocop.yml"
|
107
|
+
- CODE_OF_CONDUCT.md
|
108
|
+
- Gemfile
|
109
|
+
- LICENSE.txt
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- bin/console
|
113
|
+
- bin/setup
|
114
|
+
- lex-scheduler.gemspec
|
115
|
+
- lib/legion/extensions/scheduler.rb
|
116
|
+
- lib/legion/extensions/scheduler/actors/run_scheduler.rb
|
117
|
+
- lib/legion/extensions/scheduler/actors/schedule_task.rb
|
118
|
+
- lib/legion/extensions/scheduler/data/migrations/001_schedule_table.rb
|
119
|
+
- lib/legion/extensions/scheduler/data/migrations/002_schedule_log.rb
|
120
|
+
- lib/legion/extensions/scheduler/data/migrations/003_schedule_indexes.rb
|
121
|
+
- lib/legion/extensions/scheduler/data/migrations/004_schedule_logs_indexes.rb
|
122
|
+
- lib/legion/extensions/scheduler/data/migrations/005_add_payload_column.rb
|
123
|
+
- lib/legion/extensions/scheduler/data/models/schedule.rb
|
124
|
+
- lib/legion/extensions/scheduler/data/models/schedule_log.rb
|
125
|
+
- lib/legion/extensions/scheduler/runners/schedule.rb
|
126
|
+
- lib/legion/extensions/scheduler/transport/messages/refresh.rb
|
127
|
+
- lib/legion/extensions/scheduler/transport/messages/send_task.rb
|
128
|
+
- lib/legion/extensions/scheduler/transport/queues/schedule.rb
|
129
|
+
- lib/legion/extensions/scheduler/version.rb
|
130
|
+
homepage: https://bitbucket.org/legion-io/lex-scheduler
|
131
|
+
licenses:
|
132
|
+
- MIT
|
133
|
+
metadata:
|
134
|
+
homepage_uri: https://bitbucket.org/legion-io/lex-scheduler
|
135
|
+
source_code_uri: https://bitbucket.org/legion-io/lex-scheduler
|
136
|
+
changelog_uri: https://bitbucket.org/legion-io/lex-scheduler/src/master/CHANGELOG.md
|
137
|
+
post_install_message:
|
138
|
+
rdoc_options: []
|
139
|
+
require_paths:
|
140
|
+
- lib
|
141
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.5.0
|
146
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
requirements: []
|
152
|
+
rubygems_version: 3.1.2
|
153
|
+
signing_key:
|
154
|
+
specification_version: 4
|
155
|
+
summary: LEX::Scheduler
|
156
|
+
test_files: []
|