Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Add workspace agent lifecycle state reporting #5785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: Add new migrations
  • Loading branch information
mafredri committed Jan 23, 2023
commit 40e9c87726f08d143165e17b4a13c7ae760d485d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE workspace_agent DROP COLUMN state;

DROP TYPE workspace_agent_state;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TYPE workspace_agent_state AS ENUM ('starting', 'start_timeout', 'start_error', 'ready');

ALTER TABLE workspace_agents ADD COLUMN state workspace_agent_state NULL DEFAULT NULL;

COMMENT ON COLUMN workspace_agents.state IS 'The current state of the workspace agent.';