How to Run - luohuazju/superduty GitHub Wiki
-
Download the Project.
-
Create the database on your local machine.
Use the SQL under database directory to create tables.
database/tables_mysql.sql
or
database/tables_mysql_innodb.sql
-
Change the configuration to your own database connection.
src/main/resources/reference.conf
-
Commands
sbt clean update compile
sbt
re-start --- -Dserver.port=9090
If you want to start another instance
sbt
re-start --- -Dserver.port=9091
-
Visit http://localhost:9090/scheduler to add 4 "Produce Message Job". After 2 minutes, each "Produce Message Job" will generate 1000 "Send Message Job". And Quartz will run all the jobs in 2 minutes.
There is no UI in demo to show your the status of job executions. You can only get some feeling from the logging and the data in databases.
SELECT * FROM QRTZ_JOB_DETAILS Q
This shows you all the jobs in the database.
SELECT * FROM QRTZ_TRIGGERS Q
This shows you all the status of these jobs, waiting, pending... When will be triggered... and so on.