Publish curated Unraid-AppOps-Gateway source from bc001a6df859f7c9836fa145afb739d1ceebc524
This commit is contained in:
1 parent
631b846397
commit
ab3fa553f0
15 files changed
+3687
-227
No files matched your search
@@ -269,7 +269,7 @@ const Overview = () => {
|
||||
</h3>
|
||||
<p className="mt-1 text-sm text-slate-400">
|
||||
{giteaActions.queue.queued} queued · {giteaActions.queue.inProgress} actief
|
||||
{giteaActions.queue.oldestQueuedAgeSeconds !== null && ` · oudste ${Math.ceil(giteaActions.queue.oldestQueuedAgeSeconds / 60)} min`}
|
||||
{giteaActions.queue.oldestQueuedAgeSeconds !== null && ` · oudste job sinds aanmaak ${Math.ceil(giteaActions.queue.oldestQueuedAgeSeconds / 60)} min`}
|
||||
</p>
|
||||
{giteaActions.queue.blockedByRunnerLabels.length > 0 && (
|
||||
<p className="mt-2 text-xs font-semibold text-rose-300">
|
||||
@@ -284,12 +284,19 @@ const Overview = () => {
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{giteaActions.recommendedAction ? (
|
||||
{giteaActions.recommendedAction?.intent === 'container.restart' ? (
|
||||
<Button asChild className="bg-amber-600 text-white hover:bg-amber-500">
|
||||
<Link to={`/command-center?query=${encodeURIComponent(`container.restart ${giteaActions.recommendedAction.target}`)}`}>
|
||||
Controleer runnerrestart <ArrowUpRight className="ml-2 h-4 w-4" />
|
||||
</Link>
|
||||
</Button>
|
||||
) : giteaActions.recommendedAction?.intent === 'runner.recover' ? (
|
||||
<span
|
||||
className="rounded border border-amber-500/30 bg-amber-500/10 px-3 py-1 text-xs font-bold text-amber-200"
|
||||
title={giteaActions.recommendedAction.reason}
|
||||
>
|
||||
Schedulerherstel aanbevolen
|
||||
</span>
|
||||
) : (
|
||||
<span className={cn(
|
||||
"rounded border px-3 py-1 text-xs font-bold uppercase",
|
||||
|
||||
@@ -366,6 +366,17 @@ export interface GiteaActionsStatus {
|
||||
requiresApproval: true;
|
||||
autoExecute: false;
|
||||
reason: string;
|
||||
} | {
|
||||
intent: 'runner.recover';
|
||||
target: string;
|
||||
requiresApproval: false;
|
||||
autoExecute: false;
|
||||
reason: string;
|
||||
evidence: {
|
||||
jobId: number;
|
||||
label: string;
|
||||
observedClaimableSeconds: number;
|
||||
};
|
||||
} | null;
|
||||
cache: { hit: boolean; ttlSeconds: number };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user