Class: HashedStorage::BaseWorker

Inherits:
Object
  • Object
show all
Includes:
ExclusiveLeaseGuard, WorkerAttributes
Defined in:
app/workers/hashed_storage/base_worker.rb

Overview

rubocop:disable Scalability/IdempotentWorker

Direct Known Subclasses

ProjectMigrateWorker, ProjectRollbackWorker

Constant Summary collapse

LEASE_TIMEOUT =
30.seconds.to_i
LEASE_KEY_SEGMENT =
'project_migrate_hashed_storage_worker'

Constants included from WorkerAttributes

WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES

Method Summary

Methods included from ExclusiveLeaseGuard

#exclusive_lease, #lease_release?, #log_error, #release_lease, #renew_lease!, #try_obtain_lease