taskMapOSMatic - Tasks: task #12028, Add the jobid in the temp...

 
 

task #12028: Add the jobid in the temp directory prefix

Submitter:  David MentrĂ© <dmentre>
Submitted:  Sun 06 May 2012 03:50:34 PM UTC
   
 
Should Start On:  Sat 05 May 2012 10:00:00 PM UTC Should be Finished on:  Sat 05 May 2012 10:00:00 PM UTC
Category:  ocitysmap Priority:  * 5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Percent Complete:  0%
Open/Closed:  Open Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 06 May 2012 03:50:34 PM UTC, original submission:  

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.

David Mentré <dmentre>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dmentre (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code