Commit 20cdb2b3e64578636aa3cbe118a7f29d3b9badb8

Authored by Adhidarma Hadiwinoto
1 parent e960a2d9e5
Exists in master

Perbaikan looper

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -93,7 +93,8 @@ const getTaskLooper = async () => {
93 93  
94 94 exports.setPartner = (val) => {
95 95 partner = val;
96   - setInterval(getTaskLooper, config.pull_interval_ms || 1000);
  96 + // setInterval(getTaskLooper, config.pull_interval_ms || 1000);
  97 + getTaskLooper();
97 98 };
98 99  
99 100 exports.report = async (data, xid, retry) => {