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

Supply URLs to suite and task event handlers. #2276

Merged
merged 4 commits into from
May 11, 2017

Conversation

hjoliver
Copy link
Member

@hjoliver hjoliver commented May 10, 2017

Close #2275

Not for review yet - just needs tests. Tests added (or rather, existing tests upgraded).

@hjoliver hjoliver added this to the soon milestone May 10, 2017
@hjoliver hjoliver self-assigned this May 10, 2017
@@ -316,9 +320,6 @@ def __init__(
self.TABLE_TASK_STATES: [],
}

# TODO - should take suite name from config!
self.suite_name = os.environ['CYLC_SUITE_NAME']
Copy link
Member Author

Choose a reason for hiding this comment

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

Doesn't need to be an instance variable, and this was an insane way of getting the suite name.

@@ -23,7 +23,7 @@ OPT_SET=
if [[ "${TEST_NAME_BASE}" == *-globalcfg ]]; then
create_test_globalrc "" "
[task events]
handlers=hello-event-handler '%(name)s' '%(event)s'
handlers = hello-event-handler %(name)s %(event)s %(suite_url)s %(task_url)s %(message)s %(point)s %(submit_num)s %(id)s
Copy link
Member Author

Choose a reason for hiding this comment

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

Might as well test all possible args.

@hjoliver
Copy link
Member Author

Will be very minor conflicts with 2157

@matthewrmshin matthewrmshin modified the milestones: next release, soon May 11, 2017
@matthewrmshin
Copy link
Contributor

Will be very minor conflicts with #2157.

(The new logic will move to cylc.task_events_mgr in #2157.)

Copy link
Contributor

@matthewrmshin matthewrmshin left a comment

Choose a reason for hiding this comment

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

Please consider modifying url to URL in the docs. Looks OK in general, and should be relatively straightforward to merge/port into #2157.

@@ -1546,6 +1547,8 @@ \subsection{[runtime]}
\item \%(suite)s: suite name
\item \%(point)s: cycle point
\item \%(name)s: task name
\item \%(suite_url)s: suite url
\item \%(task_url)s: task url
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be URL (ALL CAPS), to be consistent with line 304 above.

@matthewrmshin
Copy link
Contributor

@oliver-sanders please sanity check. I am tempted to just merge this and have the docs fixed when I resolve the conflicts in #2157.

@hjoliver
Copy link
Member Author

Changed 'url' to 'URL' in the user guide.

@oliver-sanders oliver-sanders merged commit 1bb61ad into cylc:master May 11, 2017
matthewrmshin added a commit to matthewrmshin/cylc-flow that referenced this pull request May 11, 2017
@hjoliver hjoliver deleted the 2275.handler-urls branch May 11, 2017 21: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.

None yet

3 participants