Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for a new Tapis job macro (e.g., "JOB_FOLDER_NAME_AUTOINCREMENT") #78

Open
thecooltechguy opened this issue Feb 13, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@thecooltechguy
Copy link

thecooltechguy commented Feb 13, 2024

Tapis allows us to use macro variables to define what the job's execution folder should be, etc. Some of these macro variables include the job's uuid (the default) and the job's name.

Tapis's default job working directory currently uses Job UUID to create job folders, while is safe and effective from machine point of view. However, we plan to implement job folder names based on user supplied string. This way a user can browse their job outputs intutively on a filesystem instead of having to map Job UUID with corresponding folder.

This is already feasible to implement to certain extent using the files API (checking if the folder with the same name already exists before making the submitJob API call, etc.), however the number of API round trips needed for this can be numerous in edge cases.

So, we would like to propose adding a new macro JOB_FOLDER_NAME_AUTOINCREMENT (the name can be different) that has following behaviors

Create's a job folder with a given name say "myjob", and if this folder already exists it will create a new job folder with name as "myjob_1". Similarity when "myjob_1" exist, it will create a new folder as "myjob_2" and so on.

Would love to hear your thoughts on this, thanks

@richcar58 richcar58 self-assigned this Feb 13, 2024
@richcar58 richcar58 added the enhancement New feature or request label Feb 13, 2024
@richcar58
Copy link

Discussed with submitter. The incrementor macro will only be used on the last path element. Possible race conditions have to be taken into account.

@scblack321 scblack321 self-assigned this Dec 13, 2024
@scblack321 scblack321 moved this from To Do to In Progress in Tapis Project Beta Board Dec 13, 2024
@scblack321 scblack321 moved this from In Progress to On Hold in Tapis Project Beta Board Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: On Hold
Development

No branches or pull requests

3 participants