Skip to content

Update AgentScheduler to implement IFluidLoadable#12491

Merged
markfields merged 3 commits into
microsoft:mainfrom
markfields:agentscheduler-handle
Oct 14, 2022
Merged

Update AgentScheduler to implement IFluidLoadable#12491
markfields merged 3 commits into
microsoft:mainfrom
markfields:agentscheduler-handle

Conversation

@markfields
Copy link
Copy Markdown
Member

@markfields markfields commented Oct 14, 2022

AgentScheduler exposes handle but not via IFluidLoadable which makes it hard to access in general.

Fixes AB#2251 (which links to an internal discussion in Loop codebase that exposed this gap)

@markfields markfields requested a review from a team as a code owner October 14, 2022 18:48
@github-actions github-actions Bot added area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct base: main PRs targeted against main branch labels Oct 14, 2022
Instead of just the class doing so
@markfields
Copy link
Copy Markdown
Member Author

If IAgentScheduler were an interface we ever expected a consumer to implement, this would be a breaking change and belong in next. But that's not the case so proceeding to merge this to main.

@markfields markfields merged commit 34c4108 into microsoft:main Oct 14, 2022
@markfields markfields deleted the agentscheduler-handle branch October 14, 2022 21:22
markfields added a commit that referenced this pull request Oct 14, 2022
Reduced port of #12491 to int.2.0 release branch.

This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update
the interfaces, since it's not needed for the bug fix and that would not
be suitable for a patch.
markfields added a commit to markfields/FluidFramework that referenced this pull request Oct 14, 2022
…oft#12495)

Reduced port of microsoft#12491 to int.2.0 release branch.

This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update
the interfaces, since it's not needed for the bug fix and that would not
be suitable for a patch.
markfields added a commit that referenced this pull request Oct 14, 2022
Reduced port of #12491 to int.1.4 release branch.

This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update
the interfaces, since it's not needed for the bug fix and that would not
be suitable for a patch.
sharptrip pushed a commit to sharptrip/FluidFramework that referenced this pull request Oct 17, 2022
AgentScheduler exposes handle but not via IFluidLoadable which makes it
hard to access in general.
* Agent scheduler distributes a set of tasks/variables across connected clients.
*/
export interface IAgentScheduler extends IProvideAgentScheduler, IEventProvider<IAgentSchedulerEvents> {
export interface IAgentScheduler extends IProvideAgentScheduler, IEventProvider<IAgentSchedulerEvents>, IFluidLoadable {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably would have been better to leave this off IAgentScheduler and only put it on AgentScheduler -- prior to this change the IAgentScheduler was only about usage of the scheduler and not about the data store "stuff".

With this change, it's possible that components that were only intended to be "users" of the scheduler (i.e. were passed an IAgentScheduler but not an AgentScheduler) can now pin a reference to the handle. Maybe consider moving it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Can you open an ADO and assign it to me?

markfields added a commit that referenced this pull request Nov 12, 2022
Reduced port of #12491 to int.1.4 release branch.

This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update
the interfaces, since it's not needed for the bug fix and that would not
be suitable for a patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct base: main PRs targeted against main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants