Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Add parent id and request id to Async #147

Merged
merged 3 commits into from
Jul 31, 2014

Conversation

beaulyddon-wf
Copy link
Contributor

Add a parent id and request id to the Async object. The parent id will be passed
down to "children" asyncs. This will allow us to track the chain/graph of asyncs
without developer intervention.

@robertkluin-wf @tannermiller-wf @tylertreat-wf @rosshendrickson-wf @johnlockwood-wf

Add a parent id and request id to the Async object. The parent id will be passed
down to "children" asyncs. This will allow us to track the chain/graph of asyncs
without developer intervention.

@property
def _function_path(self):
# DEPRECATED: Hanging around for backwards compatibility.
return self.job[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to have this wrap self.function_path, so their implementations don't get out of sync? Just in case we ever change the behavior of job.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. Will change.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's unclear to me why this needs to change. Is the intention to make function_path part of the public-facing API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tylertreat-wf . Yes. It's already being accessed by non-internal consumers. Hence the reason I'm having to leave the old method around (I broke some user's of Furious code when doing some integration testing)

Better handling of deprecated function to ensure backwards compatibility.
return self.job[0]

@property
def _function_path(self):
# DEPRECATED: Hanging around for backwards compatibility.
return self.function_path()
Copy link
Contributor

Choose a reason for hiding this comment

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

function_path is a property, not callable.

function_path is a property not a method so don't parens is :)
@beaulyddon-wf
Copy link
Contributor Author

@robertkluin-wf @tannermiller-wf @tylertreat-wf @rosshendrickson-wf @johnlockwood-wf

PR Updated

@tylertreat-wf
Copy link
Contributor

+1

1 similar comment
@tannermiller-wf
Copy link
Contributor

+1

beaulyddon-wf added a commit that referenced this pull request Jul 31, 2014
@beaulyddon-wf beaulyddon-wf merged commit f32c341 into Workiva:master Jul 31, 2014
@beaulyddon-wf beaulyddon-wf deleted the add_parent_id_to_asyncs branch July 31, 2014 03:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants