Module: ShardUtils
- Included in:
- Funktor::Job, Funktor::Web::Application
- Defined in:
- lib/funktor/shard_utils.rb
Instance Method Summary collapse
Instance Method Details
#calculate_shard(job_id) ⇒ Object
2 3 4 5 |
# File 'lib/funktor/shard_utils.rb', line 2 def calculate_shard(job_id) # TODO - Should the number of shards be configurable? (job_id.sum % 64).to_s end |