[GRASS-dev] [GRASS GIS] #2685: Add ignore lock flag to grass command

GRASS GIS trac at osgeo.org
Mon Jun 1 07:20:05 PDT 2015


#2685: Add ignore lock flag to grass command
---------------------------------+-------------------------
 Reporter:  wenzeslaus           |      Owner:  grass-dev@…
     Type:  enhancement          |     Status:  new
 Priority:  normal               |  Milestone:  7.1.0
Component:  Startup              |    Version:  svn-trunk
 Keywords:  init, grass.py, CLI  |        CPU:  Unspecified
 Platform:  Unspecified          |
---------------------------------+-------------------------
 In `grass.py` we have `-f` flag to force removal of lock but to read only
 commands (list maps in Lacation or Mapset or get region from another
 Mapset) there is no need for removal, more precisely, it would be wrong.
 The right thing to do is to just ignore that the lock is there. It's up to
 the caller that only read only modules are called. Surely this can be used
 for parallel processing as well when same rules are applied as would be
 applied to parallel processing within GRASS session.

 Current `grass71 --help`:

 {{{
   -f    force removal of .gislock if exists (use with care!). Only with
 -text flag
 }}}

 Proposed `grass71 --help`:

 {{{
   -f    force removal of .gislock if exists (use with care!)
           Only with -text and --exec flags
   -i    ignore presence of .gislock if exists (use with care!)
           Only with -text and --exec flags. Suitable for read only
 modules.
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2685>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list