1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-07-30 08:33:51 +00:00

[Imapsync] switch from order_id to prio

This commit is contained in:
FreddleSpl0it
2026-07-22 13:08:15 +02:00
parent 52ca8f95c2
commit 7e63061b30
11 changed files with 71 additions and 193 deletions
+6 -66
View File
@@ -4089,6 +4089,12 @@ paths:
type: string
v:
type: string
prio:
description: >-
Priority (admin only; ignored otherwise). The runner processes due
jobs least-recently-run first, priority breaks ties (0 = normal,
higher wins).
type: number
delete1:
description: Delete from source when completed
type: boolean
@@ -4356,72 +4362,6 @@ paths:
items:
type: string
type: object
/api/v1/edit/syncjob/order:
post:
responses:
"401":
$ref: "#/components/responses/Unauthorized"
"200":
content:
application/json:
examples:
response:
value:
- log:
- syncjob
- edit
- job_order
msg:
- imapsync_order_updated
- "1"
type: success
schema:
properties:
log:
description: contains request object
items: {}
type: array
msg:
items: {}
type: array
type:
enum:
- success
- danger
- error
type: string
type: object
description: OK
headers: {}
tags:
- Sync jobs
description: >-
Move a sync job to a global queue position (admin only). Positions are
contiguous (1..N) across all sync jobs; setting a job to a position
shifts the others accordingly. The runner processes jobs in ascending
order, up to the configured `max_parallel` at a time, and rotates a job
to the back after it runs.
operationId: Set sync job queue position
summary: Set sync job queue position
requestBody:
content:
application/json:
schema:
example:
items: "3"
attr:
order_id: "1"
properties:
attr:
properties:
order_id:
description: target position (1..N)
type: number
type: object
items:
description: sync job id to move
type: string
type: object
/api/v1/edit/imapsync_settings:
post:
responses: