sdasd
This commit is contained in:
@@ -519,10 +519,26 @@ if (payloadNode) {
|
||||
const nextPoll = Number(data.poll_seconds || 5);
|
||||
|
||||
updateGiteaTrayUi(state, message);
|
||||
emitDebug({
|
||||
type: 'gitea:deploy-status',
|
||||
source: 'gitea-addon',
|
||||
status: response.status,
|
||||
ok: response.ok,
|
||||
message,
|
||||
state,
|
||||
poll_seconds: nextPoll,
|
||||
diagnostics: data.diagnostics || null,
|
||||
running_jobs: Array.isArray(data.running_jobs) ? data.running_jobs.length : 0,
|
||||
});
|
||||
scheduleGiteaStatusPoll(nextPoll);
|
||||
return data;
|
||||
} catch (_error) {
|
||||
updateGiteaTrayUi('error', 'Gitea-Deploy-Status konnte nicht geladen werden.');
|
||||
emitDebug({
|
||||
type: 'gitea:deploy-status:error',
|
||||
source: 'gitea-addon',
|
||||
message: 'Gitea-Deploy-Status konnte nicht geladen werden.',
|
||||
});
|
||||
scheduleGiteaStatusPoll(5);
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user