You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FluentConnectionProperties encapsulates the business data for FluentConnection. FluentConnection should not have other dependencies.
Glancing at its constructor, launcher_args stands out as a false dependency of FluentConnection.
The constructor uses it to obtain any SLURM job ID: self._slurm_job_id = launcher_args and launcher_args.get("slurm_job_id"). An optional slurm_job_id is a better (imperfect) construction dependency. Note that self._slurm_job_id is used only at exit. This implies that we can later layer things to keep such details out of the raw connection class.
FluentConnection::__init__ creates a SchemeEvalService. This is too concrete. What is it used for?
We should design Python interfaces for these. In the first instance, we can implement them in Python, wrapping SchemeEval. Later, we can move the implementation into the server behind gRPC. The first two chunks can all go behind a ServerInfo interface. The last can be in a ServerControl interface.
The text was updated successfully, but these errors were encountered:
@prmukherj Noting that I reopened this in April but since no reason was given, I will assume that there is nothing more to do until we see something concrete in future.
FluentConnectionProperties
encapsulates the business data forFluentConnection
.FluentConnection
should not have other dependencies.Glancing at its constructor,
launcher_args
stands out as a false dependency ofFluentConnection
.The constructor uses it to obtain any SLURM job ID:
self._slurm_job_id = launcher_args and launcher_args.get("slurm_job_id")
. An optional slurm_job_id is a better (imperfect) construction dependency. Note thatself._slurm_job_id
is used only at exit. This implies that we can later layer things to keep such details out of the raw connection class.FluentConnection::__init__
creates aSchemeEvalService
. This is too concrete. What is it used for?We should design Python interfaces for these. In the first instance, we can implement them in Python, wrapping SchemeEval. Later, we can move the implementation into the server behind gRPC. The first two chunks can all go behind a
ServerInfo
interface. The last can be in aServerControl
interface.The text was updated successfully, but these errors were encountered: