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

Send task's functions separately with send_object() #42

Open
rafa-be opened this issue Nov 8, 2024 · 0 comments
Open

Send task's functions separately with send_object() #42

rafa-be opened this issue Nov 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rafa-be
Copy link
Collaborator

rafa-be commented Nov 8, 2024

Client.send_object() allows constant arguments to be sent only once when calling Client.submit() multiple time.

It would be nice to also allow functions to be serialized and send once using the same mechanism:

func_ref = client.send_object(my_function)

fut_1 = client.submit(func_ref, arg_1)
fut_2 = client.submit(func_ref, arg_2)
@rafa-be rafa-be added the enhancement New feature or request label Nov 8, 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
None yet
Development

No branches or pull requests

1 participant