dynamoid

https://github.com/veraticus/dynamoid

Ruby ORM for Amazon's DynamoDB

Gitlab::BackgroundMigration.steal

Begins stealing jobs from the background migrations queue, blocking the
caller until all jobs have been completed.

When a migration raises a StandardError is is going to be retries up to
three times, for example, to recover from a deadlock.

When Exception is being raised, it enqueues the migration again, and
re-raises the exception.

steal_class - The name of the class for which to steal jobs.

Source | Google | Stack overflow

Edit

git clone [email protected]:veraticus/dynamoid.git

cd dynamoid

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--BackgroundMigration-steal-for-pr


# Commit to git

git add git commit -m "better docs for Gitlab::BackgroundMigration.steal"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Gitlab--BackgroundMigration-steal-for-pr

hub pull-request


# Celebrate!