[SCHEDULER-1542]  Targets of Opportunity - External Control
Type Enhancement
Priority High
Severity Minor
Component Dispatch Scheduler Engine
Fixed In Version [9.09.0
Versions Affected [8.1.18.1.1
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 2/3/2018

Description
See this Comm Center thread by Emmanuel Jehin, Stephane Basa, and Geoff Stone. Provide another (simpler) way to force the scheduler to immediately start a target of opportunity (well, other than the .NET Remoting API). Specifically there needs to be a way to kill the current run so that the T.O.O. Plan with time 0001-01-01T00:00:00 (run now) will start without needing to wait for the current Observation to complete.

Comments
9/2/2021 11:56:44 AM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 885
Affected files /trunk/Help/RelNotes.htm (Modified)
/trunk/Scheduler/HttpServer.cs (Modified)
/trunk/SchedulerSetup/SchedulerSetup.vdproj (Modified)
Check-in comment Change HTTP Command Receiver logging to make less scary. GEM:1542
9/2/2021 10:30:04 AM   Bob Denny
REOPENED

The logged message

2021-09-01 21:52:43.8: HTTP command listener failed to start: Access is denied
2021-09-01 21:52:43.8: If this is Windows 8-10, you will need to add permission (ACL) to listen on port 9123.
2021-09-01 21:52:43.8: See Scheduler Help > Configuring the Program > Noteworthy Configuration Options, at the bottom.

is scaring people. Change the log level to Debug and add a note that this an optional feature. Not worth making this a config option and surprising people with it defaulted OFF.
9/11/2018 12:22:47 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 706
Affected files /trunk/Scheduler/HttpServer.cs (Modified)
Check-in comment Fix typo in HTTP listen failure message GEM:1542
9/11/2018 12:10:39 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 705
Affected files /trunk/Help/Advanced.htm (Modified)
/trunk/Help/GettingStarted.htm (Modified)
/trunk/Scheduler/HttpServer.cs (Modified)
Check-in comment Add friendly error message logged for case where Windows 10 security prevents starting the listener. Point to the docs where this is covered. Correct link to Help info on this! GEM:1542
9/11/2018 12:08:15 PM   Bob Denny
REOPENED


Add friendly error message for case where Windows 10 security prevents starting the listener. Point to the docs where this is covered.
6/27/2018 9:04:46 AM   Bob Denny
With the ACL added, it's working for him. Close it.
6/26/2018 6:07:47 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 673
Affected files /trunk/Help/Advanced.htm (Modified)
Check-in comment Add doc info on setting windows ACL for receiver. GEM:1542
6/26/2018 5:14:25 PM   Bob Denny
Stephane can't get it to run on Windows 10. I did some research and found this MSDN article. Apparently you need to add an ACL with netsh??? I'm OK because it's for localhost or the local IP. Just need to determine these addresses, then add as ACLs. Can this be done internal to the program? Also I found this StackOverflow post that says you can get away without adding ACLs if you use exactly 'localhost' as the host, not  even 127.0.0.1. However it may require .NET 4.5 and I am not ready to move to that.

I'm going to go with a documentation addition and refer to this article Configuring HTTP and HTTPS

netsh http add urlacl url=http://+:9876/MyUri user=DOMAIN\user


5/7/2018 6:52:55 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 665
Affected files /trunk/Help/Advanced.htm (Modified)
/trunk/Help/RelNotes.htm (Modified)
Check-in comment Oops forgot the documentation for the HTTP command receiver GEM:1542
5/7/2018 6:38:34 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 664
Affected files /trunk/Scheduler/AssemblyInfo.cs (Modified)
/trunk/Scheduler/ConfigForm.cs (Modified)
/trunk/Scheduler/Engine.cs (Modified)
/trunk/Scheduler/HttpServer.cs (Modified)
/trunk/Scheduler/MainForm.cs (Modified)
Check-in comment Finalize HTTP Command Server, add start and stop commands, add configuration option for the port, describe in documentation. GEM:1542
5/7/2018 2:22:43 PM   Bob Denny
OH! I never told those guys I had done this! OK, complete the docs and get a copy of the Scheduler.EXE out to them.
2/19/2018 12:27:04 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 659
Affected files /trunk/Scheduler/HttpServer.cs (Modified)
Check-in comment Finish this by calling InteruuptDispatcher, minding cross-thread calling. GEM:1542
2/3/2018 7:12:56 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/scheduler
SVN Revision 656
Affected files /trunk/Scheduler/HttpServer.cs (Added)
/trunk/Scheduler/MainForm.cs (Modified)
Check-in comment Add skeleton of HTTP receiver GEM:1542
2/3/2018 5:49:51 PM   Bob Denny
Using a tiny local-only web server to receive the command. May use for start/stop of dispatcher as well, eh? Simply call Engine.InterruptDispatcher(bool StopRunningPlans).