1

I have a project using git as the source control tool, with a default branch named dev. And I can run that as a job on a torque server. My question is, while the job using the code from branch dev is running, is it safe to create a new branch, then edit some piece of code and run that new branch?

I guess this is related to how program is loaded into memory and maybe also the internal logic of torque. Any ideas?

lincr
  • 1,633
  • 1
  • 15
  • 36

1 Answers1

1

You problem is actually not really specific to either GIT or TORQUE.

What you (I guess) want to do is change a scripts source while it is running.

As you already guessed, this is heavily dependent on your program.
E.g.

You will have to check the implications for your technology stack. However, if this is a more complex application, there could be a lot of pitfalls.

I would recommend finding another solution. If your GIT repository is small, a straightforward approach would be to just check out multiple repository instances i.e. to different folders.

Thomas Kainrad
  • 2,542
  • 21
  • 26