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

SNOW-936615: instead of using global values, you could add these properties to the wrapper itself: #1761

Closed
sfc-gh-aling opened this issue Oct 10, 2023 · 0 comments
Assignees

Comments

@sfc-gh-aling
Copy link
Collaborator

          instead of using global values, you could add these properties to the wrapper itself:
def task_memory_decorator(func):
    # you could wraps here too
    def wrapper(*args, **kwargs):
        func(*args, **kwargs)
        wrapper.percent = process.memory_percent()
        ...
    return wrapper

Originally posted by @sfc-gh-mkeller in #1750 (comment)

@github-actions github-actions bot changed the title instead of using global values, you could add these properties to the wrapper itself: SNOW-936615: instead of using global values, you could add these properties to the wrapper itself: Oct 10, 2023
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

No branches or pull requests

1 participant