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

Remove cylc.flags.iflag #2871

Merged
merged 1 commit into from
Nov 21, 2018
Merged

Conversation

matthewrmshin
Copy link
Contributor

Remove a global state variable.

  • Record same info using object attributes of scheduler and tasks.
  • Update to any task's .summary['latest_message'] now correctly triggers a summary update.

Inspired by our recent discussion (#2865), I thought I'll have a go at migrating the global cylc.flags.iflag variable to become local object attributes. The solution is not perfect, because I am no longer able to use a single variable (without making this change a lot bigger), but it is a workable solution without compromising the current logic.

Remove a global state variable.
* Record same info using attr variables in scheduler and tasks.
* Update to task summary message always trigger a summary update.
@matthewrmshin matthewrmshin added this to the soon milestone Nov 19, 2018
@matthewrmshin matthewrmshin self-assigned this Nov 19, 2018
Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

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

Code looks much simpler. Easier to guess what's is_updated vs iflag 👍

Copy link
Member

@hjoliver hjoliver left a comment

Choose a reason for hiding this comment

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

Looks good; thanks @matthewrmshin

@hjoliver hjoliver modified the milestones: soon, next release Nov 21, 2018
@hjoliver
Copy link
Member

(also checked that the same number of state summary updates occurs on this branch as on master).

@hjoliver hjoliver merged commit 1c47b11 into cylc:master Nov 21, 2018
@matthewrmshin matthewrmshin deleted the remove-flags-iflag branch November 21, 2018 06:45
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.

3 participants