Sort active workspaces (#9973)
Adding an order when fetching active workspaces so that when we run command we can better understand the workspaces from the logs. Also, if the command fails, we know we could start from a specific createdAt later on
This commit is contained in:
@ -40,6 +40,9 @@ export abstract class ActiveWorkspacesCommandRunner extends BaseCommandRunner {
|
||||
WorkspaceActivationStatus.SUSPENDED,
|
||||
]),
|
||||
},
|
||||
order: {
|
||||
createdAt: 'ASC',
|
||||
},
|
||||
});
|
||||
|
||||
return activeWorkspaces.map((workspace) => workspace.id);
|
||||
|
||||
Reference in New Issue
Block a user