Repository navigation
Vine: Simplify Basic Application - #4591
Merged
btovar merged 31 commits intoDec 4, 2026
Merged
Conversation
…rtname}-{username}-{random}.
Fix bug -- don't yield when Task==None
Member
Author
|
@btovar @saifulislampi have look and give me your thoughts. This doesn't change anything in the function of existing applications, but does smooth the path for a "golden" example that can be used easily from a single terminal. If possible, I would like to have a quick release done so that Saiful can use this in our tutorial at Middleware next week. |
btovar
requested changes
Dec 2, 2026
Member
Author
|
RTM |
btovar
added a commit
that referenced
this pull request
Dec 4, 2026
* Patch from mislam5@nd.edu to add all factory command-line options.
* - Get most up-to-date stats when the user calls stats() explicity.
* Add shortname argument to manager to encourage common pattern of {shortname}-{username}-{random}.
* - Add simple "workers" argument to Factory.
* Added wait_all convenience function for user ergonomics.
* Add new hello world test case to serve as basic user template.
* No need to check for task True
* set_cores(1) to get local parallelism
* Add tqdm for new manager progress display.
* Clean up progress bar arrangement and output.
Fix bug -- don't yield when Task==None
* wait_all -> as_completed
* Include tasks_with_results in "Running" to avoid confusion
* Reverse order of bars so that they finish in order of rendering.
* More interesting output
* Put back cached behavior of stats() and update refresh interval inside progress bar.
* Switch from tqdm to rich.
* typo
* Make rich display optional, fall back to quiet output
* Remove junk file
* format
* Quiet fallback must yield from the quiet function, not return.
* Import and check for rich at the top.
* Keep namespace clean with rich objects inside function.
* Make progress bar relative to tasks submitted at start of call.
* format
* make sure name and shortname are not used at the same time.
* protect vs no uid inside container
* split verbose/quiet as_completed generators
* count manually done vs running
otherwise cached tasks are miscounted
* minor fixes to test
* fix ETA display
---------
Co-authored-by: Benjamin Tovar <btovar@nd.edu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Integrated multiple changes to simplify the initial user experience and
encourage best practices in
vine_hello.pyfor more complex applications:{shortname}-{username}-{random}with factorypattern is used for provisioning.as_completedhelper returns a generator and produces a progress bar.manager.statsgives fresh data when called externally by the application.Notes and limitations:
with factorypattern results in a delay of abt 5s at the end, waiting for the factory (or maybe the worker) to shutdown. This needs to be looked at.Merge Checklist
The following items must be completed before PRs can be merged.
Check these off to verify you have completed all steps.
make testRun local tests prior to pushing.make formatFormat source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)make lintRun lint on source code prior to pushing.