pgAgent commit: Fixed an issue - when two jobs starts at the same time,

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: pgAgent commit: Fixed an issue - when two jobs starts at the same time,
Date: 2020-08-10 08:55:48
Message-ID: E1k53au-0006yI-F8@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Fixed an issue - when two jobs starts at the same time, and sometime -
it ends up creating the same name as random string used as temporary
directory, and because - they were fetched at the same time, the
implemnetation does not find that directory exists.

In order to solve the issue - we will be using the job_id and step_id
as the prefix along with the random string while generating the
temporaty directory name. That will guarantee that the directory does
not exist at that time.

Reviewed: Neel Patel <neel(dot)patel(at)enterprisedb(dot)com>

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgagent.git;a=commitdiff;h=d4abe962a3131e48dd7f43542c5a91331b4aa92f
Author: Dave Page <dpage(at)pgadmin(dot)org>

Modified Files
--------------
job.cpp | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2020-08-10 10:15:48 [pgAdmin][RM5526] Copy and paste multiline cells
Previous Message Akshay Joshi 2020-08-10 05:41:53 Re: WIP: SQL Formatter