forked from e621ng/e621ng
[Video] Small tweaks
Automatically fix up file path based on deleted status in posts Don't make the default sidekiq runner participate in video
This commit is contained in:
parent
7485f910b3
commit
ac17597afb
@ -152,15 +152,15 @@ class Post < ApplicationRecord
|
||||
end
|
||||
|
||||
def file_path
|
||||
storage_manager.file_path(self, file_ext, :original)
|
||||
storage_manager.file_path(self, file_ext, :original, is_deleted?)
|
||||
end
|
||||
|
||||
def large_file_path
|
||||
storage_manager.file_path(self, file_ext, :large)
|
||||
storage_manager.file_path(self, file_ext, :large, is_deleted?)
|
||||
end
|
||||
|
||||
def preview_file_path
|
||||
storage_manager.file_path(self, file_ext, :preview)
|
||||
storage_manager.file_path(self, file_ext, :preview, is_deleted?)
|
||||
end
|
||||
|
||||
def crop_file_url
|
||||
|
@ -1,22 +1,21 @@
|
||||
---
|
||||
:verbose: false
|
||||
:concurrency: 5
|
||||
|
||||
# Set timeout to 8 on Heroku, longer if you manage your own systems.
|
||||
:timeout: 30
|
||||
|
||||
# Sidekiq will run this file through ERB when reading it so you can
|
||||
# even put in dynamic logic, like a host-specific queue.
|
||||
# http://www.mikeperham.com/2013/11/13/advanced-sidekiq-host-specific-queues/
|
||||
:queues:
|
||||
- [video, 1]
|
||||
- [low_prio, 1]
|
||||
- [tags, 2]
|
||||
- [default, 3]
|
||||
- [high_prio, 5]
|
||||
|
||||
# you can override concurrency based on environment
|
||||
production:
|
||||
:concurrency: 15
|
||||
staging:
|
||||
:concurrency: 5
|
||||
---
|
||||
:verbose: false
|
||||
:concurrency: 5
|
||||
|
||||
# Set timeout to 8 on Heroku, longer if you manage your own systems.
|
||||
:timeout: 30
|
||||
|
||||
# Sidekiq will run this file through ERB when reading it so you can
|
||||
# even put in dynamic logic, like a host-specific queue.
|
||||
# http://www.mikeperham.com/2013/11/13/advanced-sidekiq-host-specific-queues/
|
||||
:queues:
|
||||
- [low_prio, 1]
|
||||
- [tags, 2]
|
||||
- [default, 3]
|
||||
- [high_prio, 5]
|
||||
|
||||
# you can override concurrency based on environment
|
||||
production:
|
||||
:concurrency: 15
|
||||
staging:
|
||||
:concurrency: 5
|
||||
|
Loading…
Reference in New Issue
Block a user