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

Experimental/class gens ask tell #1236

Closed
wants to merge 134 commits into from
Closed

Conversation

jlnav
Copy link
Member

@jlnav jlnav commented Feb 7, 2024

Addresses #1240

Approach where the worker itself, outside of calling any user-function, interacts with an ask/gell gen.

  1. Initialize the Generator object on the user-side, so they can parameterize however they'd like.
  2. Insert into gen_specs.
  3. On the worker, evaluate if our gen_f has a .ask. If so, setup the corresponding Runner.
  4. Upon "calling" the gen, if the corresponding libE_info indicates the gen is not persistent, simply call the gen's .ask.
  5. Otherwise start a familiar persistent loop that asks the gen, sends data outward, and tells responses to the gen.
  6. Upon a stop-tag being received, cleanup via .final_tell.

The included functionality test works locally :)

…n-place launches, but based on the contents of passed-in specs, instantiates the relevant subclass
…" management routines from manager.py into pipelines.py
…start a temporary, local Worker for handling work
…_gen, add in Worker wrapper class to manager, but not used yet
…of a split stats line if the line is a Manager: starting or Manager: exiting line
jlnav added 21 commits April 12, 2024 13:21
…dy array to slot sim results into immediately
…t send points. if we get updates and have trouble combining them, send them separately
@jlnav jlnav requested a review from shuds13 April 29, 2024 18:44
@jlnav jlnav closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants