Skip to content

add set_ir function to change each worker's ir - #131

Open
koparasy wants to merge 9 commits into
developfrom
pr-122
Open

add set_ir function to change each worker's ir#131
koparasy wants to merge 9 commits into
developfrom
pr-122

Conversation

@koparasy

Copy link
Copy Markdown
Collaborator

Closes #122

@codecov

codecov Bot commented Jan 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@koparasy

Copy link
Copy Markdown
Collaborator Author

@Dando18 will you be able to add some tests here?

@Dando18
Dando18 requested a review from ZwFink May 5, 2026 00:51
@Dando18 Dando18 self-assigned this May 5, 2026
@Dando18 Dando18 added the enhancement New feature or request label May 5, 2026

@ZwFink ZwFink left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intended that IR can be set on jobs that are in the queue at the time of the call?

@Dando18

Dando18 commented May 11, 2026

Copy link
Copy Markdown
Collaborator

@ZwFink good point, this is probably worth changing. I had previously only been using set_ir before submitting any work, but it's probably good to make the async behavior better. I could either make it an error to set_ir while the queue is non-empty or I could add a new Future type to the queue for processing IR changes.
I'll work on implementing the latter.

@Dando18
Dando18 requested a review from ZwFink July 22, 2026 17:59

@ZwFink ZwFink left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Is it a problem that IR revisions aren't persisted to ExperimentResult?

future = EvalFuture(job_id, config)

future = EvalFuture(job_id, config, self._ir_revision, self._ir_data)
self._futures[job_id] = future

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth investigating at some point whether completed futures should be pruned, now that they may have large payload. Though we expect (I think?) set_ir calls to be infrequent

@ZwFink

ZwFink commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

☝️ Rebase onto main

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

Successfully merging this pull request may close these issues.

3 participants