diff options
| author | Roy <Roy.mail.net@gmail.com> | 2022-07-20 16:44:36 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2022-07-20 16:44:36 +0300 |
| commit | 26a23a974a68e4fdebee2632f385f6afbd233bcc (patch) | |
| tree | 997136147f0bde636fb2b3f54a2f93fe1e72c85a /Software/Visual_Studio/Tango.Integration | |
| parent | 7c88ea08fab6996af6632f2ab71ba770f1792a99 (diff) | |
| download | Tango-26a23a974a68e4fdebee2632f385f6afbd233bcc.tar.gz Tango-26a23a974a68e4fdebee2632f385f6afbd233bcc.zip | |
Added last second check for job cancel before sending job request.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 049d78d9c..c087bd3c1 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -3199,6 +3199,13 @@ namespace Tango.Integration.Operation _jobHeatingStartDate = DateTime.UtcNow; + if (handler.IsCanceled) + { + UseKeepAlive = oldKeepAlive; + UpdateStatus(MachineStatuses.ReadyToDye); + return; + } + SendContinuousRequest<JobRequest, JobResponse>(request, new TransportContinuousRequestConfig() { Timeout = TimeSpan.FromSeconds(10), ContinuousTimeout = TimeSpan.FromSeconds(10), ShouldLog = true }).Subscribe((response) => { if (!completed) |
