-
Notifications
You must be signed in to change notification settings - Fork 12
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
Create a TPV tutorial on the GTN #74
Comments
Just first off, I love the by-example, that's a great bit of reference documentation for someone upgrading an existing configuration, really great as reference. For the GTN side I think it would be more than sufficient to just upgrade the GAT tutorials to use TPV, rather than showing the DTD or custom python rules, just go 100% all in on TPV. And since job destinations would essentially be an "overhaul" and replacing the existing tutorial, I think the important things to cover for administrators would be:
|
Thanks for the suggestions, I think that's a great approach. Can you clarify |
https://training.galaxyproject.org/training-material/topics/admin/tutorials/job-destinations/tutorial.html#job-resource-selectors this feature. it's most visible on Main to select which cluster a job goes to |
As someone who had trying to get TPV doing what I want in our Galaxy instance, there are a number of things I would really love to see in the TPV documentation/tutorial:
While I acknowledge that @hexylena was who the question was directed to (and that you cannot cover EVERYTHING in a tutorial), the above are among the things I have really struggled with while trying to implement TPV in our Galaxy instance. |
Thanks @quacksawbones. The hardest part about writing these docs is to figure out where to make info available so all you need is a quick scan, as it's all too easy to bury the information somewhere. These suggestions are super helpful. Regarding the individual suggestions:
Good idea, should have been done sooner!
I think we could combine this with the above idea, and for each entry, include a column on how it will be evaluated (f-string or eval as code block). The rule of thumb is, all strings entries are evaluated as f-strings (e.g. envs, params) and everything else as code blocks. This is in the docs, but buried somewhere.
These two we can add to an FAQ? |
I completely understand @nuwang. As @hexylena mentioned, having the "By Example" sections was really useful to me while getting this working. A couple of additional clarifications:
In the above, the parser tries to execute the
Thanks again for considering my suggestions! :) |
Makes sense. We could add a gotchas/things that won't work page. Regarding the specific example, the last line of every TPV code block must evaluate to a value. This is true whether it's an if condition (should eval to a boolean value) or cores/mem (should eval to float values), so that there is some final value that can be assigned to the field. This too is in the docs, but it's not obvious unless you're looking for it. A "things that won't work" section should help clarify those. And yes, we can add the latter two to TPV by example too. |
We should also consider adding https://github.com/usegalaxy-eu/ansible-tpv-lint to the training playbook to help with this validation (or just running |
Following up on this, what's the likelihood something could be ready by April 7th or so? @nuwang |
I think it's doable. Will work on it. |
Between the tutorial here: https://training.galaxyproject.org/training-material/topics/admin/tutorials/job-destinations/tutorial.html#job-resource-selectors and the PR here: #126, we should be able to close this issue. |
Ping @hexylena
Do you have any suggestions on what it should include, that is missing, or could enhance: https://total-perspective-vortex.readthedocs.io/en/latest/topics/tpv_by_example.html?
The text was updated successfully, but these errors were encountered: