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 job storage #607

Closed
wants to merge 1 commit into from
Closed

add job storage #607

wants to merge 1 commit into from

Conversation

pkoukk
Copy link

@pkoukk pkoukk commented Nov 9, 2023

What does this do?

It allows the scheduler to load jobs from a job object, which may come from persistent storage.

And it reports job run results to a reporter interface, which can be helpful for job resuming.

Which issue(s) does this PR fix/relate to?

Resolves #533

List any changes that modify/break current functionality

No break changes.

Have you included tests for your changes?

Yes.

  1. TestLoadJobFromObject in scheduler_test.go
  2. Test_ExecutorJobReport in executor_test.go

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

"github.com/google/uuid"
)

type JobObject struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

what about the actual job function? Right now, only the job run information is stored and not the actual function to be run 🤔

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.

[FEATURE] - Can gocron read from a persistent storage the scheduled jobs and schedule
2 participants