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

Set Executor attributes in super class constructor #3361

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

khk-globus
Copy link
Collaborator

Description

Setting these attributes in the constructor makes reasoning about later use less complicated. If an Executor is instantiated these exist. Whether or not they've been set to a non-default value is another question.

Changed Behaviour

Functionally for users, this should represent no change. These attributes are nominally already set by the rest of Parsl's infrastructure. For developers, this change simply makes reasoning about the state of Executors a little easier.

Type of change

  • Code maintenance/cleanup

Setting these attributes in the constructor makes reasoning about later use
less complicated.  If an Executor is instantiated these exist.  Whether or not
they've been set to a non-default value is another question.
@khk-globus khk-globus force-pushed the set_executor_base_sane_default_values branch from 9cfae82 to eabed74 Compare April 18, 2024 15:41
@benclifford benclifford merged commit 0917e71 into master Apr 19, 2024
6 checks passed
@benclifford benclifford deleted the set_executor_base_sane_default_values branch April 19, 2024 05:11
benclifford added a commit that referenced this pull request May 15, 2024
These have been initialised in the ParslExecutor base class since #3361
benclifford added a commit that referenced this pull request May 16, 2024
These have been initialised in the ParslExecutor base class since #3361
benclifford added a commit that referenced this pull request Jul 11, 2024
Prior to this PR, monitoring hub address and ZMQ port were stored as
attributes of the DFK. The address also existed as an attribute on
dfk.monitoring, and the ZMQ port was returned by dfk.monitoring.start

Afte this PR, those values are not added to the DFK, but instead are
accessed via dfk.monitoring.

These two attributes are now only set on a new executor when monitoring
is enabled, rather than always being intialised by the DFK. Default values
now come from the executor __init__ method, which is a more usual style
in Python for providing default values. See PR #3361

This is part of ongoing work to introduce more pluggable monitoring
network connectivity - see PR #3315
benclifford added a commit that referenced this pull request Jul 18, 2024
Prior to this PR, monitoring hub address and ZMQ port were stored as
attributes of the DFK. The address also existed as an attribute on
dfk.monitoring, and the ZMQ port was returned by dfk.monitoring.start

Afte this PR, those values are not added to the DFK, but instead are
accessed via dfk.monitoring.

These two attributes are now only set on a new executor when monitoring
is enabled, rather than always being intialised by the DFK. Default values
now come from the executor __init__ method, which is a more usual style
in Python for providing default values. See PR #3361

This is part of ongoing work to introduce more pluggable monitoring
network connectivity - see PR #3315
benclifford added a commit that referenced this pull request Jul 25, 2024
Prior to this PR, monitoring hub address and ZMQ port were stored as
attributes of the DFK. The address also existed as an attribute on
dfk.monitoring, and the ZMQ port was returned by dfk.monitoring.start

Afte this PR, those values are not added to the DFK, but instead are
accessed via dfk.monitoring.

These two attributes are now only set on a new executor when monitoring
is enabled, rather than always being intialised by the DFK. Default values
now come from the executor __init__ method, which is a more usual style
in Python for providing default values. See PR #3361

This is part of ongoing work to introduce more pluggable monitoring
network connectivity - see PR #3315
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