1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-07 15:08:34 -05:00

Small changes as per @guillep2k

This commit is contained in:
Andrew Thornton 2020-01-04 15:44:28 +00:00
parent 1cb7a86e37
commit e4ddaab70b
No known key found for this signature in database
GPG key ID: 3CDE74631F13A748
2 changed files with 3 additions and 3 deletions

View file

@ -2056,7 +2056,7 @@ monitor.queue.settings.numberworkers.error = Number of Workers to add must be gr
monitor.queue.settings.maxnumberworkers = Max Number of workers monitor.queue.settings.maxnumberworkers = Max Number of workers
monitor.queue.settings.maxnumberworkers.placeholder = Currently %[1]d monitor.queue.settings.maxnumberworkers.placeholder = Currently %[1]d
monitor.queue.settings.maxnumberworkers.error = Max number of workers must be a number monitor.queue.settings.maxnumberworkers.error = Max number of workers must be a number
monitor.queue.settings.submit = Change Settings monitor.queue.settings.submit = Update Settings
monitor.queue.settings.changed = Settings Updated monitor.queue.settings.changed = Settings Updated
monitor.queue.settings.blocktimeout = Current Block Timeout monitor.queue.settings.blocktimeout = Current Block Timeout
monitor.queue.settings.blocktimeout.value = %[1]v monitor.queue.settings.blocktimeout.value = %[1]v
@ -2069,7 +2069,7 @@ monitor.queue.pool.workers.none = No worker groups.
monitor.queue.pool.cancel = Shutdown Worker Group monitor.queue.pool.cancel = Shutdown Worker Group
monitor.queue.pool.cancelling = Worker Group shutting down monitor.queue.pool.cancelling = Worker Group shutting down
monitor.queue.pool.cancel_notices = Shutdown this group of %s workers? monitor.queue.pool.cancel_notices = Shutdown this group of %s workers?
monitor.queue.pool.cancel_desc = Leaving a queue without any worker groups may cause requests may block indefinitely. monitor.queue.pool.cancel_desc = Leaving a queue without any worker groups may cause requests to block indefinitely.
notices.system_notice_list = System Notices notices.system_notice_list = System Notices
notices.view_detail_header = View Notice Details notices.view_detail_header = View Notice Details

View file

@ -432,7 +432,7 @@ func AddWorkers(ctx *context.Context) {
ctx.Redirect(setting.AppSubURL + fmt.Sprintf("/admin/monitor/queue/%d", qid)) ctx.Redirect(setting.AppSubURL + fmt.Sprintf("/admin/monitor/queue/%d", qid))
} }
// SetQueueSettings sets the maximum number of workers for this queue // SetQueueSettings sets the maximum number of workers and other settings for this queue
func SetQueueSettings(ctx *context.Context) { func SetQueueSettings(ctx *context.Context) {
qid := ctx.ParamsInt64("qid") qid := ctx.ParamsInt64("qid")
mq := queue.GetManager().GetManagedQueue(qid) mq := queue.GetManager().GetManagedQueue(qid)