feat(loop): aynı torrent için birden fazla iş desteği ekle

Aynı torrent hash'i için oluşturulan yeni loop işleri, mevcut aktif işleri
otomatik olarak durdurur. Stop-by-hash endpoint'i tüm ilgili işleri
durduracak şekilde güncellendi. TorrentTable bileşeni çoklu işleri
doğru şekilde işleyecek ve profil adını en güncel aktif işten
alacak şekilde yeniden yazıldı. LoopJob arayüzüne createdAt ve updatedAt
alanları eklendi.
This commit is contained in:
2026-01-05 21:27:05 +03:00
parent a1ae6566bd
commit 584d6cc319
6 changed files with 68 additions and 15 deletions

View File

@@ -10,6 +10,8 @@ export const loopStartSchema = z.object({
allowIp: allowIpSchema,
targetLoops: z.number().int().min(1).max(1000),
delayMs: z.number().int().min(0).max(86_400_000),
profileName: z.string().trim().min(1).max(64).optional(),
profileId: z.string().trim().min(1).optional(),
});
export const dryRunSchema = z.object({