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

Add support to share resources between taks, for example, database connection. #4

Closed
freakpol opened this issue Aug 28, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@freakpol
Copy link

Those resources are not necessarily "parameters".

@daniel-duarte daniel-duarte self-assigned this Aug 28, 2019
@daniel-duarte daniel-duarte added the enhancement New feature or request label Aug 28, 2019
@daniel-duarte
Copy link
Collaborator

Included context management in released version 1.2.0.
This allows to manage shared resources and values of any kind between tasks.

For an usage example, please check this test.

All tasks resolvers are allowed to:

  • Access (read) any value in the context (via ´context.myValue´).
  • Write to the context (manipulate, rewrite or delete an existing value).
  • Context values are not checked either used as input/output of tasks.
  • If no context is provided, a default empty object {} is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants