JS - JobScheduler
  1. JS - JobScheduler
  2. JS-1634

JobScheduler Agent supports jobs and monitors implemented with .NET C# language

    Details

      Description

      .NET support

      • Jobs and monitors that make use of the .NET C# programming language can be executed with JobScheduler Agent for Windows.
      • The JobScheduler Agent exposes its API to .NET C# job and monitor classes.
      • .NET is added to the supported languages for Windows systems and can be configured with jobs and monitors by use of the language attribute:
        • Example
           <script language="dotnet" dll="<path>/myJob.dll" dotnet_class="mypackage.MyJob"/>
          
        • The job or monitor .dll file is found with the following precedence:
          • If an absolute path is specified then the location of the .dll file is resolved from this path.
          • If a relative path is specified then the location of the .dll file is resolved from the working directory of the Agent.
          • Any additional .dll files that are required by job or monitor .dll files are resolved according to .NET precedences, e.g. look up .dll files in the directory where the job .dll file is located.

        Issue Links

          Activity

          Hide
          Robert Ehrlich added a comment -

          Hallo Joacim Zschimmer,

          Monitor kann ich gar nicht testen:

          • ohne CDATA bekomme gleich einen "SCHEDULER-173 Missing script" Fehler
          • mit CDATA
            2017-07-03 14:22:03.391+0200 [ERROR]  COM-80020009 com.sos.scheduler.engine.taskserver.moduleapi.ModuleFactoryRegister$UnsupportedRawModuleArgumentsException: Unsupported script language 'dotnet' or unsupported argument combination RawModuleArguments(language=dotnet script=echo xxx), method=call
            2017-07-03 14:22:03.414+0200 [ERROR]  SCHEDULER-280  Process terminated with exit code 1 (0x1)
            

            Hier ist meine Monitor Konfiguration:

            <?xml version="1.0" encoding="ISO-8859-1"?>
            <job  title="CSharp SampleJob" stop_on_error="no" order="no" process_class="/agent-1.11.x-SNAPSHOT">
                <params>
                </params>
                <script language="shell"><![CDATA[echo Hello, World]]></script>
              
                <monitor name="csharp_monitor" ordering="1"> 
                    <script language="dotnet" dotnet_class="JobSchedulerSamples.SampleMonitor" dll="pfad zur DLL\JobSchedulerSamples.dll">
                     <!--  <![CDATA[echo xxx]]> -->
                    </script>
                </monitor>
             
                <run_time />
            </job>
            
          Show
          Robert Ehrlich added a comment - Hallo Joacim Zschimmer , Monitor kann ich gar nicht testen: ohne CDATA bekomme gleich einen "SCHEDULER-173 Missing script" Fehler mit CDATA 2017-07-03 14:22:03.391+0200 [ERROR] COM-80020009 com.sos.scheduler.engine.taskserver.moduleapi.ModuleFactoryRegister$UnsupportedRawModuleArgumentsException: Unsupported script language 'dotnet' or unsupported argument combination RawModuleArguments(language=dotnet script=echo xxx), method=call 2017-07-03 14:22:03.414+0200 [ERROR] SCHEDULER-280 Process terminated with exit code 1 (0x1) Hier ist meine Monitor Konfiguration: <?xml version= "1.0" encoding= "ISO-8859-1" ?> <job title= "CSharp SampleJob" stop_on_error= "no" order= "no" process_class= "/agent-1.11.x-SNAPSHOT" > <params> </params> <script language= "shell" ><![CDATA[echo Hello, World]]></script> <monitor name= "csharp_monitor" ordering= "1" > <script language= "dotnet" dotnet_class= "JobSchedulerSamples.SampleMonitor" dll= "pfad zur DLL\JobSchedulerSamples.dll" > <!-- <![CDATA[echo xxx]]> --> </script> </monitor> <run_time /> </job>

            People

            • Assignee:
              Robert Ehrlich
              Reporter:
              Andreas Püschel
              Approver:
              Santiago Aucejo Petzoldt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: