What is the scope of an environment variable defined in a job?
Let's say I have three jobs: Alpha, Bravo, and Charlie. Each of these uses a WORK_DIR environment variable for general invocation of scripts and so forth. Each of these jobs has a different directory for log files (e.g. %WORK_DIR%\logs\Alpha).
I could write an error handler that was generic if I knew that in the Alpha job I could define LOG_DIR to be the Alpha log directory and the generic error handler would pick this up in the context of the erroneous Alpha job. However, if the environment is shared, the generic error handler would pick up the log file for the latest job to start (the jobs last many hours or days, so overlapping situations are frequent).
So...if I define LOG_DIR within the Alpha job and also within the Bravo and Charlie jobs are these three different contexts and thus three different environment variables? Will a generic error handler correctly pick up the LOG_DIR and so forth? Or are they shared and I have to write three separate, specific error handlers?
_________________________
* Software Mercenary *
* Dilettante * Human *