-
Notifications
You must be signed in to change notification settings - Fork 211
Introduce Function Context Feature to TaskVineExecutor #3724
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
Open
tphung3
wants to merge
50
commits into
Parsl:master
Choose a base branch
from
tphung3:opt-vine-ex
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
03b21a0
first draft with double serialization
tphung3 6556d39
fix bug
tphung3 72e9e00
deduplicate fn serialization
tphung3 10486b2
finish serialization deduplication
tphung3 ee39165
fix bug dedup double serial
tphung3 79079b0
add option for non-tmp staging dir
tphung3 a8104e7
context feature added
tphung3 a6e609d
add _ to hidden variable
tphung3 5b190bb
use 1 mapping only
tphung3 4681cd0
check monitoring first
tphung3 97b3fe7
fix lint issues
tphung3 3cd8608
fix bug in mapping of function names in executor
tphung3 433917e
fix flake8
tphung3 edf192d
add annotation
tphung3 6c9388b
new way to detect monitoring code
tphung3 59dd532
add run_parsl_function
tphung3 62db46d
fixes to update head
tphung3 1f2ba3e
comment out debug code
tphung3 bd766e7
use tmp dir defaults to False
tphung3 a03757d
fix dir name
tphung3 f93da84
make parents dir if needed
tphung3 51a047f
makedirs not mkdir
tphung3 0c327bb
remove context refs during args serialization
tphung3 7bcb6ef
remove debug code and clean it a bit
tphung3 9fb00d5
add input files support for function context/library
tphung3 056dcc4
fix lint errors
tphung3 a0cc793
ignore cloudpickle import error
tphung3 75823c2
add ignore error type
tphung3 2595333
add tests of function context in taskvine
tphung3 2e0f9f8
sort imports
tphung3 0b30fef
explicit config
tphung3 3ca1675
syntax
tphung3 23fd926
fix test
tphung3 63d4a12
fix lint
tphung3 bd26ed0
restrict to taskvine only
tphung3 efe9ef1
fix lint
tphung3 d033a54
try restrict tests to taskvine
tphung3 ee803e6
remove config parametrize
tphung3 058f42d
remove param config
tphung3 abcbffd
use 1st config
tphung3 3bebee1
fix config
tphung3 831e4b6
dont load config
tphung3 12a9be7
rerun
tphung3 f57a957
turn on shared fs
tphung3 79886a8
add res spec
tphung3 821daf4
local compute
tphung3 753a127
remove monitoring detection code
tphung3 2ba5f41
remove require_taskvine decorator
tphung3 6f2a148
add docstring for helper function
tphung3 7736704
remove redundant serverless output check
tphung3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we talked about this somewhere before but I can't remember where: you should be using the parsl serialization libraries not cloudpickle unless you have a specific reason that needs different serialization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The object I serialize is a list containing a function and other Python objects. https://github.com/Parsl/parsl/pull/3724/files#diff-c5ce2bce42f707d31639e986d8fea5c00d31b5eead8fa510f7fe7e3181e67ccfR458-R461
Because it is a list, Parsl
serializeusesmethods_for_datato serialize it which eventually usespickle, and this can't serialize a function by value. So I'm using cloudpickle serialization only for this case. What do you think?