From 140c528d6c82b6d771c378a84c140ad0772fcfdf Mon Sep 17 00:00:00 2001 From: Leonid Zharikov Date: Fri, 6 Nov 2020 00:20:04 +0300 Subject: [PATCH 1/2] feat: Add Singleton mode in job This mode prevents double start. --- README.md | 28 +++++++++++++++++----------- example_test.go | 16 ++++++++++++++++ executor.go | 12 +++++++++++- go.mod | 1 + go.sum | 2 ++ job.go | 39 +++++++++++++++++++++++++++++++++------ job_test.go | 6 ++++-- scheduler.go | 10 ++++++++++ scheduler_test.go | 27 +++++++++++++++++++++++++-- 9 files changed, 119 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index f41bc9ad..b77a75b0 100644 --- a/README.md +++ b/README.md @@ -15,26 +15,32 @@ If you want to chat, you can find us at Slack! [ Date: Fri, 19 Feb 2021 16:49:11 -0600 Subject: [PATCH 2/2] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b77a75b0..5c78502f 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,9 @@ Looking to contribute? Try to follow these guidelines: * For bigger changes, please open an issue for discussion before sending a PR. * PRs should have: tests, documentation and examples (if it makes sense) * You can also contribute by: - * Reporting issues - * Suggesting new features or enhancements - * Improving/fixing documentation + * Reporting issues + * Suggesting new features or enhancements + * Improving/fixing documentation --- [Jetbrains](https://www.jetbrains.com/?from=gocron) supports this project with GoLand licenses. We appreciate their support for free and open source software!