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

Hooks helper #25

Open
perry-mitchell opened this issue Mar 20, 2019 · 1 comment
Open

Hooks helper #25

perry-mitchell opened this issue Mar 20, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@perry-mitchell
Copy link
Member

perry-mitchell commented Mar 20, 2019

Add a hooks helper for supporting webhooks. Hooks should be able to be added to the collection and fired with the relevant data when a condition is met.

Hooks should be stored in the data store like scheduled tasks, for example.

@perry-mitchell perry-mitchell added the enhancement New feature or request label Mar 20, 2019
@perry-mitchell
Copy link
Member Author

Some idea for hooks:

  • A job succeeds
  • A job fails
  • A job is added
  • A job starts
  • A job stops

The job-related hooks should use the following structure (JSON payload):

{
	"type": "job-started",
	"time": 1554975865811,
	"job": {
		"id": "..."
	}
}

@sjsalonen sjsalonen self-assigned this Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants