fix(core): update

This commit is contained in:
Philipp Kunz 2023-01-19 14:09:56 +01:00
parent ce258c76d2
commit 173e1ca35d
2 changed files with 10 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/taskbuffer',
version: '3.0.7',
version: '3.0.8',
description: 'flexible task management. TypeScript ready!'
}

View File

@ -5,6 +5,9 @@ import * as plugins from './taskbuffer.plugins.js';
* constains all data for the final coordinator to actually make an informed decision
*/
export interface IDistributedDecisionInfoBasis {
/**
* this needs to correlate to the consultationResult
*/
submitterRandomId: string;
taskName: string;
taskVersion: string;
@ -14,7 +17,11 @@ export interface IDistributedDecisionInfoBasis {
status: 'requesting' | 'gotRejected' | 'failed' | 'succeeded';
}
export interface ITaskConsultationResult {
export interface IDsitributedTaskConsultationResult {
/**
* this needs to correlate to the decisionInfoBasis
*/
submitterRandomId: string;
considered: boolean;
rank: string;
reason: string;
@ -22,6 +29,6 @@ export interface ITaskConsultationResult {
}
export abstract class AbstractDistributedCoordinator {
public abstract announceDistributedDecisionInfoBasis(infoBasisArg: IDistributedDecisionInfoBasis): Promise<ITaskConsultationResult>
public abstract announceDistributedDecisionInfoBasis(infoBasisArg: IDistributedDecisionInfoBasis): Promise<IDsitributedTaskConsultationResult>
public abstract updateDistributedDevisionInfoBasis(infoBasisArg: IDistributedDecisionInfoBasis): Promise<void>
}