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

 
 

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

Submitted by:  David MentrĂ© <dmentre>
Submitted on:  Sun 06 May 2012 03:50:34 PM UTC  
 
Should Start On: Sat 05 May 2012 10:00:00 PM UTCShould be Finished on: Sat 05 May 2012 10:00:00 PM UTC
Category: ocitysmapPriority: 5 - Normal
Status: NonePrivacy: Public
Percent Complete: 0%Assigned to: None
Open/Closed: OpenRelease: None
Effort: 0.00

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup