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

Middleware Proof of Concept #6

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Fishwaldo
Copy link
Contributor

Proof of Concept for Middleware

Just a simple Proof of Concept for Middleware...

A few things:

  1. State handling needs to be stored just in the Schedule. I see some states in Schedule, and some in jobs (and for example, FINISHED state in Jobs, but the doco says a Finished State can not be rescheduled...)
  2. the Schedule.transitionState is very simple now. It should handle:
  • Selectively Blocking on some State Transitions
  • Handle Panics (new State?)
  • Handle rescheduling Jobs (eg, so you could implement retry/backoff via middleware)
  • Handle Contexts when introduced?

@Fishwaldo
Copy link
Contributor Author

btw, this is based Upon the Schedule Branch I had in the other PR.

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.

1 participant