Constructor Summary
| Public Constructor | ||
| public |
constructor(PopApi: PopApi, options: Object) Create a new Cron object. |
|
Method Summary
| Public Methods | ||
| public |
Get the cron job to run. |
|
Public Constructors
public constructor(PopApi: PopApi, options: Object) source
Create a new Cron object.
Params:
| Name | Type | Attribute | Description |
| PopApi | PopApi |
|
The PopApi instance. |
| options | Object |
|
The options for the Cron middleware. |
| options.cronTime | string |
|
The cron tab to execute the scraper. |
| options.start | boolean |
|
Start the cronjob on creation. |
Manual
Reference
Source
Test
