Skip to content

interactive shell: long running in different workspace blocks other tasks #188

@swaros

Description

@swaros

Describe the bug
if a task running in a different folder by using workingdir for long or infinite time, the whole environment is moved to this directory. this (seems) not an issue for regular execution like ctx run target.
but will be an issue while running in the interactive mode.
there we have the current targets loaded, but by trying to executing anything, contxt is trying to read the taskfile and fails.

To Reproduce
Steps to reproduce the behavior:

  1. create a taskfile that have an task with different workingdir path
  2. for easier reproduction do not add an taskfile in this folder
  3. make this task long time running like an infinite loop or simple wait
  4. add an other task just for testing
  5. start the interactive mode.
  6. start the task the uses the different workspace setting
  7. try to start the other task while the first task is still running
  8. see error

Expected behavior
any task should run in his own environment depending the expected path. also the interactive shell should always start from root of the project.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnext major releaseplaned for the next major release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions