On Sunday, June 2, 2019 at 11:58:02 PM UTC-7, rāma wrote: > > I am using the latest version of NSSM - the Non-Sucking Service Manager; > both 2.24 and the prelease build 2.2.4-101 . > > Unfortunately for me, NSSM sucked big time and trying to get it working > with web2py was an utter waste of time. > > Tried > -K; nothing and tried > -X; nothing anyways > > Env: > Python3.7 > Windows 10 > > Can anyone advise what is supposed to happen after issuing -K app1 ? A > windows pop-up or the local webserver starts ? There is no outcome clearly > explained in any material I have gone through so far. >
A scheduler process has no user interface (UI). It runs in the background, looking for tasks that are scheduled to start. It then fires off a subprocess that runs that task, and records the results in the database. A normal HTTP request can add a task to the queue, or check the status of task. Tasks often do their work by "side effects": creating a file, sending email, changing values in a database table. I have several tasks that generate email in response to an upload and automated scanning of the file. I also handle my session cleanup with a task. I keep an eye on tasks by using Appadmin or through the database console application (sqlite3 from the command line, or psql). On a system where Appadmin isn't set up, select * from scheduler_task where status == 'QUEUED'; -- or 'FAILED' or 'COMPLETE' select * from scheduler_run where id > (select max(id) from scheduler_run) - 5; I don't recommend doing INSERT or UPDATE on the tables; using the API is much safer. The .schema should be considered implementation-dependent, rather than public. One of the other things I use the Scheduler for is getting remote files. I do this for a "toy" server I use at home, running on my Windows 10 laptop. I open a command window, and do my -K there, and then ignore that cmd afterwards .. Windows doesn't have the foreground/background support in CMD that a Unix/Linux shell has. I haven't used NSSM. I have set up a buildbot client using the built-in Windows task tools (schtasks /create and schtasks /run with an appropriate xml file); those techniques should work for a Scheduler process, but I haven't tried that yet, as I haven't yet needed automatiion of starting the Scheduler process. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/7677cb2f-e5aa-45bf-a223-937452460558%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

