Delete lock for the given job type.
Returns a list of Locks (jobType + jobId).
Returns a list of Locks (jobType + jobId). To avoid select * statement without key in where clause, we do multiple select statements with given primary key
the job type of the job, e.g. "product_full_import"
we use the concept of lightweight transactions (or compare and set, CAS) here as implemented by C* with the PAXOS consensus protocol.
we use the concept of lightweight transactions (or compare and set, CAS) here as implemented by C* with the PAXOS consensus protocol. see http://www.datastax.com/documentation/cassandra/2.0/cassandra/dml/dml_ltwt_transaction_c.html for more info
This repository manages locks for jobs syncronization in distributed environments. To work every kind of job needs an unique identifier (jobType) and every job run an unique identifier (jobId) If a job acquires a lock, it will only get it, if there isn't already a jobId saved for that jobType. The jobId of the running job will be saved with a ttl to the lock table. A running job needs to renew its lock to show it's still active and not died.
We use Consistency Level Quorum to ensure that a Job is Locked or is not Locked. The CL makes the Lock mechanism more deterministic.