dj_split 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bf5708e6d48391f29f9fd9bc0078565bebb81f5e9fba0c3af68a8226c056a37f
4
+ data.tar.gz: 9d2b8d1693ebbb6f3db39e1211bd00df31cd4a52a64e360610a8abc0d6ba6ab9
5
+ SHA512:
6
+ metadata.gz: 9a5c7689ddf7cd61d3a35769d51f2c9525bc755a08f436468d6253030fc81996e1a774b816e7efb51a91eab6b192c09be20745c408d4cbda49e0e962819d786e
7
+ data.tar.gz: 8f00fc971c82fde43505e06efc246c635d6d51ece03669e4c2fba0bc1577ea21cacd37b10525de0a7d880259092c14203dfab1c83647908d14424e44c2e4e6df
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ .bundle
2
+ coverage
3
+ doc/
4
+ pkg
5
+ tmp
6
+ Gemfile.lock
7
+ bin/
8
+ tmp
9
+ log
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.3
5
+ before_install: gem install bundler -v 1.16.2
@@ -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 nehalamin93@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 [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in dj_split.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Md Nehal Amin
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
@@ -0,0 +1,91 @@
1
+ # Delayed Job Split Feature
2
+
3
+ Class [**"DjSplit::Split"**](https://github.com/nehalamin93/dj_split/blob/master/lib/dj_split/split.rb) is designed to **Split Time Taking Delayed Jobs, Crons, Bulk Operations, etc** into **smaller size multiple Delayed Jobs**.
4
+ These **Jobs** should be **mutually exclusive** of each other and should be able to run **concurrently**.
5
+
6
+ These **Jobs** can be picked by **Delayed Job Workers** within or across **Multiple Servers**.
7
+
8
+ Class behaves like **Delayed Job Worker**, it also **picks and processes delayed job** entries.
9
+
10
+ **Splitting** will be done on **one parameter** only.
11
+
12
+ ## Purpose
13
+
14
+ To distribute the load among **Multiple Workers**.
15
+
16
+ ## Installation
17
+
18
+ Add this line to your application's Gemfile:
19
+
20
+ ```ruby
21
+ gem 'dj_split' or gem 'dj_split', :git => 'https://github.com/nehalamin93/dj_split.git'
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle install
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install dj_split
31
+
32
+ Run the required database migrations:
33
+
34
+ $ script/rails generate dj_split
35
+ $ rake db:migrate
36
+
37
+ ## Usage
38
+
39
+ ```ruby
40
+ class A
41
+ def self.function1(user_ids_array1, other_attr1)
42
+ #do something
43
+ end
44
+ end
45
+ ```
46
+ $ A.function1(user_ids_array1, other_attr1)
47
+
48
+ can be replace by:
49
+
50
+ $ DjSplit::Split.new(queue_options: {queue: queue_name}, split_options: {size: 1000, by: 2}).enqueue(A, "function1", user_ids_array1, other_attr1)
51
+
52
+ ## Note
53
+
54
+ * Arguments must be in exact order.
55
+ * "enqueue" parameters are (object/class, function_name, arguments of that function)
56
+ * split_options[:size] is splitting size
57
+ * split_options[:by] is position of splitting attribute in the enqueue function. In above example, splitting attribute is user_ids_array1 and has position 2(>=2).
58
+
59
+ * Here we are splitting on the basis of user_ids_array1.
60
+ * We can also specify the: splitting_size, Otherwise it will take default Optimal Splitting Size
61
+ * After splitting and enqueuing, instead of waiting for the sub-jobs to be complete this function will behave like delayed job worker and will pick and process the sub-jobs instead of blocking.
62
+
63
+ ## What DjSplit::Enqueue does
64
+
65
+ * Split the mentioned parameter into array of chunks(arrays) of size = split_options[:size].
66
+ * Loop through the array and insert each chunk into Delayed Job queue(array element is placed in place of splitting params)
67
+ * Queue jobs will be picked and executed by workers
68
+ * Instead of waiting for jobs to be picked and processed by workers this function will also pick and process those job
69
+
70
+ ## Contributing
71
+
72
+ * Bug reports and pull requests are welcome on GitHub at https://github.com/nehalamin93/dj_split.
73
+ * Fork it
74
+ * Create your feature branch (git checkout -b my-new-feature)
75
+ * Commit your changes (git commit -am 'Add some feature')
76
+ * Push to the branch (git push origin my-new-feature)
77
+ * Create new Pull Request
78
+
79
+ ## License
80
+
81
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
82
+
83
+ ## Code of Conduct
84
+
85
+ Everyone interacting in the DjSplit project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/nehalamin93/dj_split/blob/master/CODE_OF_CONDUCT.md).
86
+
87
+ <!-- ## Development
88
+
89
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
90
+
91
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). -->
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/dj_split.gemspec ADDED
@@ -0,0 +1,36 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "dj_split/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "dj_split"
8
+ spec.version = DjSplit::VERSION
9
+ spec.authors = ["Md Nehal Amin"]
10
+ spec.email = ["nehalamin93@gmail.com"]
11
+
12
+ spec.summary = %q{Splitting, Enqueuing and Executing time taking jobs(eg: Delayed Job) without Blocking.}
13
+ spec.description = %q{Gem is designed to Split Time Taking Jobs(delayed jobs, crons, bulk operations, etc.) into smaller size independent Delayed Jobs. These Delayed Jobs can pick by multiple workers in single or multiple servers. After splitting and enqueuing, the gem will wait for the sub-jobs to be complete and also process sub-jobs instead of blocking.}
14
+ spec.homepage = ""
15
+ spec.license = "MIT"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test)/}) }
21
+ end
22
+ spec.bindir = "exe"
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
25
+
26
+ spec.add_development_dependency "bundler", ">= 1.11"
27
+ spec.add_development_dependency "rake", "~> 10.0"
28
+ spec.add_development_dependency "minitest", "5.11.3"
29
+ spec.add_development_dependency 'rspec', '~> 3.6'
30
+ spec.add_development_dependency "mocha", "~> 1.2"
31
+
32
+ spec.add_dependency 'delayed_job', '>= 3.0'
33
+ spec.add_dependency 'sqlite3'
34
+ spec.add_dependency 'delayed_job_active_record', '>= 0.4'
35
+ spec.add_development_dependency 'rails'
36
+ end
@@ -0,0 +1,24 @@
1
+ module Delayed
2
+ module Backend
3
+ module ActiveRecord
4
+ class Job < ::ActiveRecord::Base
5
+ def self.reserve(worker, max_run_time = Worker.max_run_time)
6
+ # scope to filter to records that are "ready to run"
7
+ ready_scope = ready_to_run(worker.name, max_run_time)
8
+
9
+ # scope to filter to the single next eligible job
10
+ ready_scope = ready_scope.where("priority >= ?", Worker.min_priority) if Worker.min_priority
11
+ ready_scope = ready_scope.where("priority <= ?", Worker.max_priority) if Worker.max_priority
12
+ unless worker.split_group_id
13
+ ready_scope = ready_scope.where(queue: Worker.queues) if Worker.queues.any?
14
+ end
15
+ # filter only jobs with worker job group id
16
+ ready_scope = ready_scope.where(split_group_id: worker.split_group_id) if worker.split_group_id
17
+ ready_scope = ready_scope.by_priority
18
+
19
+ reserve_with_scope(ready_scope, worker, db_time_now)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,5 @@
1
+ module Delayed
2
+ class Worker
3
+ attr_accessor :split_group_id
4
+ end
5
+ end
@@ -0,0 +1,109 @@
1
+ module DjSplit
2
+ class Split
3
+
4
+ OPTIMAL_SPLIT_SIZE = 200
5
+ DEFAULT_SPLIT_INDEX = 2
6
+
7
+ def initialize(options)
8
+ @queue_options = options[:queue_options] || {}
9
+ @split_group_id = get_random_split_group_id
10
+ @queue_options.merge!(split_group_id: @split_group_id)
11
+ @split_options = options[:split_options] || {}
12
+ end
13
+
14
+ def enqueue(object, method_name, *args)
15
+ splitting_index = get_splitting_index
16
+ sliced_ids_array = get_sliced_ids(args[splitting_index])
17
+
18
+ sliced_ids_array.each do |slice_set|
19
+ args[splitting_index] = slice_set
20
+ delayed_job_object = Delayed::PerformableMethod.new(object, method_name.to_sym, args)
21
+ Delayed::Job.enqueue(delayed_job_object, @queue_options)
22
+ end
23
+
24
+ wait_check_and_execute_delayed_jobs
25
+ end
26
+
27
+ private
28
+
29
+ def wait_check_and_execute_delayed_jobs
30
+ while(pending_jobs_of_group_id?)
31
+ pick_and_invoke_delayed_job
32
+ end
33
+
34
+ waiting_for_other_workers_to_process_jobs
35
+ handle_failed_jobs
36
+ end
37
+
38
+ def pick_and_invoke_delayed_job
39
+ worker_object = Delayed::Worker.new
40
+ worker_object.split_group_id = @split_group_id
41
+ worker_object.work_off(1)
42
+ end
43
+
44
+ def pending_jobs_of_group_id?
45
+ Delayed::Job.where(split_group_id: @split_group_id, locked_at: nil).exists?
46
+ end
47
+
48
+ def waiting_for_other_workers_to_process_jobs
49
+ count = 0
50
+ while(jobs_processed_by_other_workers_currently?)
51
+ count += 1
52
+ sleep(1.0/5.0)
53
+ handle_stale_jobs if check_stale_jobs?(count)
54
+ end
55
+ end
56
+
57
+ # handles a scenario when Job is locked by a worker and worker got killed
58
+ def handle_stale_jobs
59
+ stale_jobs = get_processing_jobs_by_other_workers.select{ |dj| !get_delayed_jobs_pids.include?(dj.locked_by.split("pid:")[1].strip) }
60
+ raise "Stale Delayed Jobs of Group Id(#{@split_group_id}): #{stale_jobs.pluck(:id)}" if stale_jobs.present?
61
+ end
62
+
63
+ def get_processing_jobs_by_other_workers
64
+ Delayed::Job.where(split_group_id: @split_group_id, failed_at: nil).where.not(locked_by: nil)
65
+ end
66
+
67
+ def get_delayed_jobs_pids
68
+ bash_op = `ps aux | grep delayed_job | grep -v 'grep' | grep -v 'bin/sh' | grep -v 'tail' | grep -v 'ruby' | grep -v 'trace'`
69
+ processes = bash_op.split("\n")
70
+ pid_array = []
71
+ processes.each do |process|
72
+ split_process = process.split(" ")
73
+ pid_array << split_process[1]
74
+ end
75
+ pid_array
76
+ end
77
+
78
+ def handle_failed_jobs
79
+ failed_jobs = Delayed::Job.where(split_group_id: @split_group_id).where.not(failed_at: nil)
80
+ raise "Failed Delayed Jobs of Group Id(#{@split_group_id}): #{failed_jobs.pluck(:id)}" if failed_jobs.exists?
81
+ end
82
+
83
+ def jobs_processed_by_other_workers_currently?
84
+ Delayed::Job.where(split_group_id: @split_group_id, failed_at: nil).exists?
85
+ end
86
+
87
+ def get_split_size
88
+ @split_options[:size] || OPTIMAL_SPLIT_SIZE
89
+ end
90
+
91
+ def get_sliced_ids(ids)
92
+ ids.each_slice(get_split_size)
93
+ end
94
+
95
+ def get_splitting_index
96
+ (@split_options[:by] || DEFAULT_SPLIT_INDEX) - 2
97
+ end
98
+
99
+ # Collision is still OK. Probabilty of collision is negligible.
100
+ def get_random_split_group_id
101
+ Time.now.to_i.to_s[5..-1] + rand(1000000000).to_s
102
+ end
103
+
104
+ # Check for stale jobs 1 out of 2000 times.
105
+ def check_stale_jobs?(count)
106
+ (count%2000 == 1999)
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,3 @@
1
+ module DjSplit
2
+ VERSION = "1.0.0"
3
+ end
data/lib/dj_split.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'active_support'
2
+ require 'active_record'
3
+ require 'delayed_job'
4
+ require 'delayed_job_active_record'
5
+ require 'dj_split/version'
6
+ require 'dj_split/dj_activerecord_overrides'
7
+ require 'dj_split/dj_worker_overrides'
8
+ require 'dj_split/split.rb'
@@ -0,0 +1,25 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/migration'
3
+ require 'rails/generators/active_record'
4
+
5
+ class DjSplitGenerator < Rails::Generators::Base
6
+
7
+ include Rails::Generators::Migration
8
+
9
+ def self.source_root
10
+ @source_root ||= File.join(File.dirname(__FILE__), 'templates')
11
+ end
12
+
13
+ def create_migration_file
14
+ migration_template('migration.rb', 'db/migrate/add_split_group_id_to_delayed_jobs.rb') if defined?(ActiveRecord)
15
+ end
16
+
17
+ def self.next_migration_number(dirname)
18
+ next_migration_number = current_migration_number(dirname) + 1
19
+ if ActiveRecord::Base.timestamped_migrations
20
+ [Time.now.utc.strftime("%Y%m%d%H%M%S"), "%.14d" % next_migration_number].max
21
+ else
22
+ "%.3d" % next_migration_number
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,10 @@
1
+ class AddSplitGroupIdToDelayedJobs < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :delayed_jobs, :split_group_id, :string, :limit => 20
4
+ add_index :delayed_jobs, :split_group_id
5
+ end
6
+
7
+ def self.down
8
+ remove_column :delayed_jobs, :split_group_id, :string
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,190 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dj_split
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Md Nehal Amin
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 5.11.3
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 5.11.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: mocha
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: delayed_job
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: delayed_job_active_record
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0.4'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0.4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Gem is designed to Split Time Taking Jobs(delayed jobs, crons, bulk operations,
140
+ etc.) into smaller size independent Delayed Jobs. These Delayed Jobs can pick by
141
+ multiple workers in single or multiple servers. After splitting and enqueuing, the
142
+ gem will wait for the sub-jobs to be complete and also process sub-jobs instead
143
+ of blocking.
144
+ email:
145
+ - nehalamin93@gmail.com
146
+ executables: []
147
+ extensions: []
148
+ extra_rdoc_files: []
149
+ files:
150
+ - ".gitignore"
151
+ - ".travis.yml"
152
+ - CODE_OF_CONDUCT.md
153
+ - Gemfile
154
+ - LICENSE.txt
155
+ - README.md
156
+ - Rakefile
157
+ - dj_split.gemspec
158
+ - lib/dj_split.rb
159
+ - lib/dj_split/dj_activerecord_overrides.rb
160
+ - lib/dj_split/dj_worker_overrides.rb
161
+ - lib/dj_split/split.rb
162
+ - lib/dj_split/version.rb
163
+ - lib/generators/dj_split/dj_split_generator.rb
164
+ - lib/generators/dj_split/templates/migration.rb
165
+ homepage: ''
166
+ licenses:
167
+ - MIT
168
+ metadata: {}
169
+ post_install_message:
170
+ rdoc_options: []
171
+ require_paths:
172
+ - lib
173
+ required_ruby_version: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ required_rubygems_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ requirements: []
184
+ rubyforge_project:
185
+ rubygems_version: 2.7.7
186
+ signing_key:
187
+ specification_version: 4
188
+ summary: 'Splitting, Enqueuing and Executing time taking jobs(eg: Delayed Job) without
189
+ Blocking.'
190
+ test_files: []