This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Init unit test Added TryRemove method and ContainsTask to CronScduler Moved LastRunTimestamp to ICrobJob and implemented in run functions * Added Enable and Disable crontab jobs to console commands * Changed console commands output order * Added remove job when file is deleted. * Updated docs * Updated jobs.md and README.md Added config_json.md * updated README.md for logo * Changed schema for signers; moved to wallet section Updated docs * Changed namespaces Added Next Run to console display
- Loading branch information
1 parent
ce29144
commit d4795f7
Showing
41 changed files
with
642 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,65 @@ | ||
[![Static Badge](https://img.shields.io/badge/license-MIT-green)](/LICENSE) | ||
![GitHub tag (with filter)](https://img.shields.io/github/v/tag/cschuchardt88/neo-cron-plugin) | ||
![GitHub all releases](https://img.shields.io/github/downloads/cschuchardt88/neo-cron-plugin/total) | ||
|
||
<p align="center" width="100%"> | ||
<img src="https://github.com/cschuchardt88/neo-cron-plugin/blob/master/imgs/logo-transparent.png" alt="Crontab-logo" /> | ||
</p> | ||
|
||
```bash | ||
* * * * * Crontab Expression Chart | ||
│ │ │ │ │ | ||
│ │ │ │ │ | ||
│ │ │ │ |_________ Day of Week (0 – 6) (0 is Sunday) | ||
│ │ │ |____________ Month (1 – 12), * means every month | ||
│ │ |______________ Day of Month (1 – 31), * means every day | ||
│ |________________ Hour (0 – 23), * means every hour | ||
|___________________ Minute (0 – 59), * means every minute | ||
``` | ||
|
||
<p align="center" width="100%"> | ||
<a href="https://github.com/cschuchardt88/neo-cron-plugin/blob/master/LICENSE"> | ||
<img src="https://img.shields.io/badge/license-MIT-green" alt="license-MIT" /> | ||
</a> | ||
<a href="https://github.com/cschuchardt88/neo-cron-plugin/tags"> | ||
<img src="https://img.shields.io/github/v/tag/cschuchardt88/neo-cron-plugin" alt="neo-cron-plugin-tags" /> | ||
</a> | ||
<a href="https://github.com/cschuchardt88/neo-cron-plugin/releases"> | ||
<img src="https://img.shields.io/github/downloads/cschuchardt88/neo-cron-plugin/total" alt="neo-cron-plugin-releases-downloads" /> | ||
</a> | ||
</p> | ||
|
||
# neo-cron-plugin | ||
Crontab task scheduler for executing blockchain tasks. | ||
Task scheduler for sending transactions to the blockchain. Just as the | ||
name implies `Crontab` does just that! Schedule jobs to invoke contracts | ||
or transfer funds at certain times of the day, month, year, hour and | ||
minute. | ||
|
||
## Features | ||
- Crontab Scheduler | ||
- Invoke Contracts | ||
- Invoke Transfers (_Nep17_) | ||
- Task Scheduler | ||
- Manage jobs in `cli` console. | ||
- Send transaction types. | ||
- Invoke Contract Methods | ||
- Send Nep-17 Transfers | ||
|
||
## Upcoming Features | ||
- Send `VM` scripts in transactions. | ||
- Detailed error reporting. | ||
- enable/disable jobs in their config file. | ||
|
||
Have a feature you want to recommend for this project. Just create an | ||
[issue](https://github.com/cschuchardt88/neo-cron-plugin/issues). | ||
|
||
# Install | ||
This plugin requires at least `neo-cli` version | ||
[3.6.0](https://github.com/neo-project/neo-node/releases). After you | ||
download and extract the `.zip` file. | ||
|
||
**Next Steps** | ||
1. _Open `neo-cli` directory._ | ||
1. _Create a folder in the `Plugins` directory called `Crontab`._ | ||
1. _Copy & Paste `Crontab.dll`, `config.json` and `NCrontab.dll` into `Plugins\Crontab` directory._ | ||
1. _Edit `config.json` with your configuration. [More datails](/docs)_ | ||
1. _Edit `config.json` with your configuration. [More details](/docs/CONFIG_JSON.md)_ | ||
|
||
# Example Tasks | ||
You can find more datails on how to configure [jobs here](/docs/jobs.md). | ||
You can find more details on how to create and configure jobs [here](/docs/JOBS.md). | ||
|
||
- Invoke a [contract](/examples/HelloInvokeMethod.job) | ||
- Invoke a [transfer](/examples/HelloTransfer.job) | ||
**Schedule Job Examples** | ||
- [contract](/examples/HelloInvokeMethod.job) | ||
- [transfer](/examples/HelloTransfer.job) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Config File | ||
Is placed in the same directory as `Crontab.dll`. Located in `Plugins\Crontab` | ||
directory. | ||
|
||
## Root Section | ||
| Property | Type | Description | | ||
| ---: | :---: | :--- | | ||
|PluginConfiguration|object|note: Standard for `NEO` plugins| | ||
|
||
## PluginConfiguration Section | ||
| Property | Type | Description | | ||
| ---: | :---: | :--- | | ||
|Network|uint32|Network you want to execute tasks on.| | ||
|MaxGasInvoke|int64|Max gas allow on the `NEO` `VM`.| | ||
|Job|object|see [job](#job-section) section for more details.| | ||
|
||
## Job Section | ||
| Property | Type | Description | | ||
| ---: | :---: | :--- | | ||
|Path|string|Where your `*.job` files are. Defaults to `jobs` folder in the `neo-cli` root directory. _note: You must create this folder_.| | ||
|Timeout|uint32|Max time in seconds that a job can run for. It's recommended that it should be no more than 30 seconds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.8 KB
imgs/crontab-high-resolution-logo-black-on-transparent-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.3 KB
imgs/crontab-high-resolution-logo-color-on-transparent-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.6 KB
imgs/crontab-high-resolution-logo-white-on-transparent-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.