Skip to content

feat(framework) Add flwr-app-scheduler command#5627

Draft
panh99 wants to merge 24 commits intomainfrom
scheduler-cmd
Draft

feat(framework) Add flwr-app-scheduler command#5627
panh99 wants to merge 24 commits intomainfrom
scheduler-cmd

Conversation

@panh99
Copy link
Member

@panh99 panh99 commented Jul 24, 2025

No description provided.

@github-actions github-actions bot added the Maintainer Used to determine what PRs (mainly) come from Flower maintainers. label Jul 24, 2025
@panh99 panh99 marked this pull request as draft July 24, 2025 08:13
panh99 and others added 2 commits July 24, 2025 16:48
Co-authored-by: Javier <jafermarq@users.noreply.github.com>
@panh99 panh99 marked this pull request as ready for review July 24, 2025 18:25
parser.add_argument(
"--plugin-type",
type=str,
choices=SchedulerPluginType.all(),
Copy link
Member

Choose a reason for hiding this comment

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

nice!

Comment on lines +60 to +77
parser.add_argument(
"--insecure",
action="store_true",
help="Connect to the AppIO API without TLS. "
"Data transmitted between the client and server is not encrypted. "
"Use this flag only if you understand the risks.",
)
parser.add_argument(
"--flwr-dir",
default=None,
help="""The path containing installed Flower Apps.
By default, this value is equal to:

- `$FLWR_HOME/` if `$FLWR_HOME` is defined
- `$XDG_DATA_HOME/.flwr/` if `$XDG_DATA_HOME` is defined
- `$HOME/.flwr/` in all other cases
""",
)
Copy link
Member

Choose a reason for hiding this comment

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

Should we inject these aregs via add_args_flwr_app_common as we do in the flwr-*** commands? For example in flwr-clientapp: https://github.com/adap/flower/blob/ce17e4e2573bb53a94a6a879e871f38a4394ffb2/framework/py/flwr/supernode/cli/flwr_clientapp.py#L87


# Log the first message after parsing arguments in case of `--help`
log(INFO, "Starting Flower App Scheduler")

Copy link
Member

Choose a reason for hiding this comment

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

Should we add logs similar to those in the flwr-*** commands mentioning about TLS and the address used? For example this is how it's done with flwr-clientapp atm:
https://github.com/adap/flower/blob/ce17e4e2573bb53a94a6a879e871f38a4394ffb2/framework/py/flwr/supernode/cli/flwr_clientapp.py#L32-L45

@panh99 panh99 marked this pull request as draft August 1, 2025 07:28
Co-authored-by: Javier <jafermarq@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintainer Used to determine what PRs (mainly) come from Flower maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants