We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7db9bd3 + 889b1f4 commit c7ab436Copy full SHA for c7ab436
app/jobs/file_upload_job.rb
@@ -1,4 +1,6 @@
1
class FileUploadJob < ApplicationJob
2
+ limits_concurrency key: ->(language_id, *args) { language_id }
3
+
4
def perform(language_id, file_id = nil, provider_id = nil, share = ENV["AZURE_STORAGE_SHARE_NAME"])
5
@language = Language.find(language_id)
6
@processor = LanguageContentProcessor.new(language)
0 commit comments