maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [task #12028] Add the jobid in the temp directory prefi


From: David Mentré
Subject: [Maposmatic-dev] [task #12028] Add the jobid in the temp directory prefix
Date: Sun, 06 May 2012 15:50:34 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0

URL:
  <http://savannah.nongnu.org/task/?12028>

                 Summary: Add the jobid in the temp directory prefix
                 Project: MapOSMatic
            Submitted by: dmentre
            Submitted on: dim. 06 mai 2012 17:50:34 CEST
         Should Start On: dim. 06 mai 2012 00:00:00 CEST
   Should be Finished on: dim. 06 mai 2012 00:00:00 CEST
                Category: ocitysmap
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
                  Effort: 0.00

    _______________________________________________________

Details:

It would be useful for debugging to add the job id in the temporary directory
prefix.

Maxime's suggestion:
http://lists.nongnu.org/archive/html/maposmatic-dev/2012-04/msg00418.html
"""
My suggestion is to have an optional jobid field in the
RenderingConfiguration (ocitysmap2/__init__.py), set my MapOSMatic in
scripts/render.py when creating the RenderingConfiguration, but not
necessarily by OCitySMap (like in ocitysmap2-render for example).

Then, you simply do:

 tmpdir = tempfile.mkdtemp(prefix='ocitysmap-%s' %
   (config.jobid and '%d-' % config.jobid or ''))
"""

I'm not sure to fully understand Maxime's proposal but I think the job id
should always be included in temp prefix.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?12028>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]