summaryrefslogtreecommitdiffstats
path: root/vnfcatalogue/cronjobs/README.md
blob: cf27ff8c70f9aa6e5cee50802471d4d739a3f65c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# CRONJOB Directory

## Helper to setup cronjob to fill the vnf table

There are two important parameters that need to be set in github.js
before running cronjob.


```
   access_token : generate an access token from github account for accessing
   the github apis. This is necessary as the non access token limit tends to 
   be 50 api calls per hour.
   delta : the threshold between the last update of the row of the vnf table
   and current time. It is measured in seconds.
```

Enter the details namely username and password in the **database.js**.
Then setup the cronjob by putting the following line in the crontab

In the crontab

```bash
    node github
```