[Top][All Lists]

[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


                 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



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

Maxime's suggestion:
My suggestion is to have an optional jobid field in the
RenderingConfiguration (ocitysmap2/, set my MapOSMatic in
scripts/ 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:


  Message posté via/par Savannah

reply via email to

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