Scaffolder workspace serialization

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2024-04-30 21:13:35 +02:00
parent e4b50ab39b
commit ee538cb044
2 changed files with 20 additions and 8 deletions
+15 -6
View File
@@ -418,8 +418,6 @@ export class DatabaseTaskStore implements TaskStore {
| undefined
>;
// (undocumented)
getWorkspace?(options: { taskId: string }): Promise<Buffer | undefined>;
// (undocumented)
heartbeatTask(taskId: string): Promise<void>;
// (undocumented)
list(options: { createdBy?: string }): Promise<{
@@ -441,6 +439,11 @@ export class DatabaseTaskStore implements TaskStore {
ids: string[];
}>;
// (undocumented)
rehydrateWorkspace?(options: {
taskId: string;
targetPath: string;
}): Promise<void>;
// (undocumented)
saveTaskState(options: { taskId: string; state?: JsonObject }): Promise<void>;
// (undocumented)
serializeWorkspace(options: { path: string; taskId: string }): Promise<void>;
@@ -562,10 +565,13 @@ export class TaskManager implements TaskContext_2 {
| undefined
>;
// (undocumented)
getWorkspace(options: { taskId: string }): Promise<Buffer | undefined>;
// (undocumented)
getWorkspaceName(): Promise<string>;
// (undocumented)
rehydrateWorkspace(options: {
taskId: string;
targetPath: string;
}): Promise<void>;
// (undocumented)
get secrets(): TaskSecrets_2 | undefined;
// (undocumented)
serializeWorkspace?(options: { path: string }): Promise<void>;
@@ -621,8 +627,6 @@ export interface TaskStore {
| undefined
>;
// (undocumented)
getWorkspace?(options: { taskId: string }): Promise<Buffer | undefined>;
// (undocumented)
heartbeatTask(taskId: string): Promise<void>;
// (undocumented)
list?(options: { createdBy?: string }): Promise<{
@@ -643,6 +647,11 @@ export interface TaskStore {
ids: string[];
}>;
// (undocumented)
rehydrateWorkspace?(options: {
taskId: string;
targetPath: string;
}): Promise<void>;
// (undocumented)
saveTaskState?(options: {
taskId: string;
state?: JsonObject;
+5 -2
View File
@@ -361,12 +361,15 @@ export interface TaskContext {
| undefined
>;
// (undocumented)
getWorkspace?(options: { taskId: string }): Promise<Buffer | undefined>;
// (undocumented)
getWorkspaceName(): Promise<string>;
// (undocumented)
isDryRun?: boolean;
// (undocumented)
rehydrateWorkspace?(options: {
taskId: string;
targetPath: string;
}): Promise<void>;
// (undocumented)
secrets?: TaskSecrets;
// (undocumented)
serializeWorkspace?(options: { path: string }): Promise<void>;