Make configurable time between each RefreshChannelsJob

This commit is contained in:
Féry Mathieu (Mathius)
2022-02-21 10:53:20 +01:00
parent 85ba04b715
commit f75a81c9ee
5 changed files with 49 additions and 22 deletions

View File

@@ -56,11 +56,13 @@ end
class Config
include YAML::Serializable
property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)
property feed_threads : Int32 = 1 # Number of threads to use for updating feeds
property output : String = "STDOUT" # Log file path or STDOUT
property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr
property db : DBConfig? = nil # Database configuration with separate parameters (username, hostname, etc)
property channel_threads : Int32 = 1 # Number of threads to use for crawling videos from channels (for updating subscriptions)
@[YAML::Field(converter: TimeSpanConverter)]
property channel_refresh_time : Time::Span = 30.minutes # Time between channel_refresh
property feed_threads : Int32 = 1 # Number of threads to use for updating feeds
property output : String = "STDOUT" # Log file path or STDOUT
property log_level : LogLevel = LogLevel::Info # Default log level, valid YAML values are ints and strings, see src/invidious/helpers/logger.cr
property db : DBConfig? = nil # Database configuration with separate parameters (username, hostname, etc)
@[YAML::Field(converter: Preferences::URIConverter)]
property database_url : URI = URI.parse("") # Database configuration using 12-Factor "Database URL" syntax