Please enable JavaScript to view this site.

AudienceView Unlimited 7  Product Guides

Navigation: Registry > System Settings > AVScheduler Service

AVScheduler - Example PM2 Command Lines

Scroll Previous Top Next More

 


 

node pm2 list scheduler

node pm2 stop scheduler

node pm2 start scheduler

node pm2 restart scheduler

node pm2 show scheduler

 


 

Once the avSchedulerInputParameters.json file is reconfigured it will start the service as a PM2 service.

 

Below are some useful PM2 option and samples on each option:

1.On the directory where npm install audienceview@version was executed.

2.Enter cd [AUDIENCEVIEW SERVER]\node_modules\pm2\bin\

3.Execute one of the following options:

node pm2 list scheduler

node pm2 stop scheduler

node pm2 start scheduler

node pm2 restart scheduler

node pm2 show scheduler

node pm2 list scheduler

The node pm2 list scheduler command lists all of the services being run in PM2.

 

The following is an example of the information that is returned:

Name

mode

status

?

cpu

memory

scheduler

fork

stopped

0

0%

0 B

 

 

node pm2 stop scheduler

The node pm2 stop scheduler command stops the scheduler from running.

 

The following is an example of the information that is returned:

 

[PM2] Applying action stopProcessId on app [scheduler](ids: 0)

 

[PM2] [scheduler](0) √

Name

mode

status

?

cpu

memory

scheduler

fork

stopped

0

0%

0 B

 

node pm2 start scheduler

The node pm2 start scheduler command starts the scheduler.

 

The following is an example of the information that is returned:

[PM2] Applying action restartProcessId on app [scheduler](ids: 0)

[PM2] [scheduler](0) √

[PM2] Process successfully started

Name

mode

status

?

cpu

memory

scheduler

fork

online

0

10%

5.7 MB

 

node pm2 restart scheduler

The node pm2 restart scheduler command restarts the scheduler. If changes have been made to the avSchedulerInputParameters.json file you can restart the scheudler to make the changes take effect. This can also be accomplished using the node pm2 stop scheduler/node pm2 start scheduler

 

The following is an example of the information that is returned:

[PM2] Applying action restartProcessId on app [scheduler](ids: 0)

[PM2] [scheduler](0) √

App name

id

mode

pid

status

restart

uptime

mem

watching

scheduler

0

fork

10616

online

1

0s

5.7 MB

disabled

 

node pm2 show scheduler

The node pm2 show scheduler command displays the status of the scheduler.

 

The following is an example of the information that is returned:

[PM2] Applying action restartProcessId on app [scheduler](ids: 0)

[PM2] [scheduler](0) √

status

online

name

scheduler

restarts

0

uptime

2m

script path

C:\AudienceView\libs\AVScheduler\scheduler.js

script args

N/A

error log path

C:\Audienceview\Logs\scheduler\pm2_logs\.pm2\logs\scheduler-error-0.log

out log path

C:\Audienceview\Logs\scheduler\pm2_logs\.pm2\logs\scheduler-out-0.log

pid path

C:\Audienceview\Logs\scheduler\pm2_logs\.pm2\pids\scheduler-0.pid

interpreter

node

interpreter args

N/A

script id

0

exec cwd

C:\AudienceView\libs\AVScheduler

exec mode

fork_mode

node.js version

6.9.1

watch & reload

?

unstable restarts

0

created at

2024-04-28T17:20:27.599Z

 

 

 

 

 

Code metrics value

Loop delay

117.39ms

 

Add your own code metrics: http://bit.ly/code-metrics

Use `pm2 logs scheduler [--lines 1000]` to display logs

Use `pm2 monit` to monitor CPU and Memory usage scheduler