Skip to content

Support for scripts / hooks when starting or finishing a task #225

Description

@javierav

Problem Statement

If you want to work on several tasks simultaneously—for example, in a Rails app where database changes are made—having only a single local database can easily cause conflicts if two agents are working in parallel.

Possible Solution

The ideal approach is for Parallel Code to allow defining hooks in the project that run when a task starts, so you could, for instance, run rails db:prepare at the start and rails db:drop at the end.

Internally, the app is configured so that the database name somehow includes the git branch name or the worktree folder name, making it unique within the project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions