ratt-ru / pyxis

Python Extensions for Interferometry Scripting
3 stars 5 forks source link

add explicit screen support #12

Closed o-smirnov closed 9 years ago

o-smirnov commented 9 years ago

I'm tired of losing my long pyxis jobs. Must add the capability to automatically run itself inside a screen session if a command-line option or magic variable is specified.

o-smirnov commented 9 years ago

OK, this one is really cool. Run with -S/--spawn-screen, OR set SPAWN_SCREEN=True in your pyxisconf file, and pyxis will automatically run itself under a screen session *if any commands are given.

Also useful to set PAUSE_ON_EXIT=True (or run with --pause-on-exit), because then it will pause inside the screen session before exiting. Without this option the screen session terminates when the pipeline terminates.

o-smirnov commented 9 years ago

https://github.com/ska-sa/pyxis/commit/d6d673827b48c29d6a3fd0bee70d847c8031e1f9 also adds an -N option, to disable use of screen even if SPAWN_SCREEN=True in the config.