gitpod-io / gitpod-io/gitpod

Allow end-tasks, which will run when a workspace stops (timeout)

Open
#3,966 36 comments 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

aspect: product integration feature: tasks meta: never-stale team: IDE team: webapp type: feature request
Dominant language
TypeScript
Stars
13.8k
Forks
1.4k
Avg merge
17h 58m
Merged PRs (30d)
5

Description

Similar to start-tasks I propose adding end-tasks.
End-tasks will get triggered and run when a workspace gets stopped (timeout)

Why it's necessary:

  • In a "regular" (non-gitpod) setup on a local machine, working on projects that store content and changes in a database is fairly straight forward. I can pull the database once, switch between different branches, make changes in the database, and continue working on the project for many days.
  • In a Gitpod setup, I can pull the database once, and any changes I make in the database will persist through timeout and a restart of a workspace. The next day (or minute) I want to work on a different branch so I start a NEW workspace, and poof! the database is gone.

How it works / Why it's a good idea:

  • Once end-tasks are available, I can make sure that a machine that is about to be stopped, can run a command that will store the important information / database / docker-image in a safe place. And in the next time I open a new workspace, I can choose fetching that database I saved.
  • I am sure there are many more scenarios possible that will be helpful for people once end-tasks feature is available.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the start-tasks documentation as the closest reference; read it first, then trace the workspace stop and timeout lifecycle. Done means a configured end-tasks command runs when a workspace stops due to timeout and can support saving state for a later workspace.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.