Hey! It is fixed now.
Thanks a lot.
pakhi-newgen
@pakhi-newgen
Posts made by pakhi-newgen
-
RE: How to disable jsreport correctly?
We have created a sample demo for the issue we are facing on github at : https://github.com/pakhi-newgen/jsreport-scheduling-demo
The schedule runs every minute and is initially disabled. You will receive a prompt after 3 minutes to enable the schedule. Once you enable the schedule, you will notice that multiple reports are created at that instant.
-
RE: How to disable jsreport correctly?
Hey,
I tried it again by installing using jsreport/jsreport-scheduling, but its still runs pending number of times when i enable it again. -
How to disable jsreport correctly?
Hi,
i am using jsreport-core in node.js to develop an application that uses the jsreport-scheduling extension to create schedules that saves/emails the created the reported.
I want to give the user the option to be able to enable/disable the schedule.
I am disabling/enabling the schedule by updating the existing schedule in the following manner :-jsreport.documentStore.collection("schedules").update( { _id: schedule._id }, { $set: { enabled: args.enabled } });
Now after disabling the schedule by setting enabled: false, whenever i enable it again by enabled: true, the scheduler generates and emails the report multiple times.
For example - If my scheduler runs every 5 mins and i disable it for 20 mins. Then when i enable it again, it runs 4 times.
How can i prevent this from happening? I want the scheduler to run only once after i enable it.