<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAS Viya Batch Job Scheduling with Custom Pod Template and Context Configuration in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Batch-Job-Scheduling-with-Custom-Pod-Template-and/m-p/986789#M30804</link>
    <description>&lt;P data-end="96" data-start="90"&gt;Hello,&lt;/P&gt;
&lt;P data-end="96" data-start="90"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="220" data-start="98"&gt;We are currently building a &lt;SPAN class="hover:entity-accent entity-underline inline cursor-pointer align-baseline"&gt;&lt;SPAN class="whitespace-normal"&gt;SAS Viya&lt;/SPAN&gt;&lt;/SPAN&gt; environment and need to schedule overnight (batch) jobs.&lt;/P&gt;
&lt;P data-end="220" data-start="98"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="569" data-start="222"&gt;In our setup, batch jobs require access to certain secrets that should not be available in interactive user sessions. To handle this in Kubernetes, we have separated pod templates as follows: a compute pod template for interactive user sessions, and a batch pod template for batch jobs where the required secrets are mounted as files onto the pod.&lt;/P&gt;
&lt;P data-end="569" data-start="222"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="730" data-start="571"&gt;Additionally, we have configured sas.batch.server (autoexec) with several&amp;nbsp; libname statements to assign authenticated libraries when a batch session starts.&lt;/P&gt;
&lt;P data-end="1097" data-start="732"&gt;When users schedule jobs via SAS Studio or SAS Environment Manager, the jobs are executed using the Job Execution Launcher context, which currently uses the compute pod template. While we can modify this context to use the batch pod template, we are concerned that the sas.batch.server&amp;nbsp;(autoexec) configuration may not be executed as part of these scheduled jobs.&lt;/P&gt;
&lt;P data-end="1097" data-start="732"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1322" data-start="1099"&gt;To address this,&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1322" data-start="1099"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI data-end="1443" data-start="1364" data-section-id="19xu6g9"&gt;Create a new batch context based on the Job Execution Launcher context&lt;/LI&gt;
&lt;LI data-end="1509" data-start="1444" data-section-id="7ktx2a"&gt;Configure the&amp;nbsp;Job Execution Launcher context to use the batch pod template&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;With this setup, any job execution from SAS Studio or SAS Environment Manager would use the Job Execution Launcher context, which in turn would use the batch pod template. This should also ensure that the sas.batch.server autoexec is triggered as part of the batch execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1322" data-start="1099"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1662" data-start="1324"&gt;Could you please confirm whether this is a valid and recommended approach for separating batch and interactive workloads in SAS Viya? Also, how can we verify which context is being used for job execution, and what is the correct way to configure or enforce the use of a specific context (such as the new batch context) for scheduled jobs?&lt;/P&gt;
&lt;P data-end="1662" data-start="1324"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1840" data-start="1664"&gt;Finally, we would prefer not to use the SAS Viya CLI for submitting batch jobs. Is it possible to submit and schedule batch jobs via the UI, similar to how it is done in SAS 9?&lt;/P&gt;
&lt;P data-end="1840" data-start="1664"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1884" data-start="1842"&gt;Any guidance would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Apr 2026 08:10:41 GMT</pubDate>
    <dc:creator>freshstarter</dc:creator>
    <dc:date>2026-04-25T08:10:41Z</dc:date>
    <item>
      <title>SAS Viya Batch Job Scheduling with Custom Pod Template and Context Configuration</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Batch-Job-Scheduling-with-Custom-Pod-Template-and/m-p/986789#M30804</link>
      <description>&lt;P data-end="96" data-start="90"&gt;Hello,&lt;/P&gt;
&lt;P data-end="96" data-start="90"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="220" data-start="98"&gt;We are currently building a &lt;SPAN class="hover:entity-accent entity-underline inline cursor-pointer align-baseline"&gt;&lt;SPAN class="whitespace-normal"&gt;SAS Viya&lt;/SPAN&gt;&lt;/SPAN&gt; environment and need to schedule overnight (batch) jobs.&lt;/P&gt;
&lt;P data-end="220" data-start="98"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="569" data-start="222"&gt;In our setup, batch jobs require access to certain secrets that should not be available in interactive user sessions. To handle this in Kubernetes, we have separated pod templates as follows: a compute pod template for interactive user sessions, and a batch pod template for batch jobs where the required secrets are mounted as files onto the pod.&lt;/P&gt;
&lt;P data-end="569" data-start="222"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="730" data-start="571"&gt;Additionally, we have configured sas.batch.server (autoexec) with several&amp;nbsp; libname statements to assign authenticated libraries when a batch session starts.&lt;/P&gt;
&lt;P data-end="1097" data-start="732"&gt;When users schedule jobs via SAS Studio or SAS Environment Manager, the jobs are executed using the Job Execution Launcher context, which currently uses the compute pod template. While we can modify this context to use the batch pod template, we are concerned that the sas.batch.server&amp;nbsp;(autoexec) configuration may not be executed as part of these scheduled jobs.&lt;/P&gt;
&lt;P data-end="1097" data-start="732"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1322" data-start="1099"&gt;To address this,&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1322" data-start="1099"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI data-end="1443" data-start="1364" data-section-id="19xu6g9"&gt;Create a new batch context based on the Job Execution Launcher context&lt;/LI&gt;
&lt;LI data-end="1509" data-start="1444" data-section-id="7ktx2a"&gt;Configure the&amp;nbsp;Job Execution Launcher context to use the batch pod template&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;With this setup, any job execution from SAS Studio or SAS Environment Manager would use the Job Execution Launcher context, which in turn would use the batch pod template. This should also ensure that the sas.batch.server autoexec is triggered as part of the batch execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1322" data-start="1099"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1662" data-start="1324"&gt;Could you please confirm whether this is a valid and recommended approach for separating batch and interactive workloads in SAS Viya? Also, how can we verify which context is being used for job execution, and what is the correct way to configure or enforce the use of a specific context (such as the new batch context) for scheduled jobs?&lt;/P&gt;
&lt;P data-end="1662" data-start="1324"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1840" data-start="1664"&gt;Finally, we would prefer not to use the SAS Viya CLI for submitting batch jobs. Is it possible to submit and schedule batch jobs via the UI, similar to how it is done in SAS 9?&lt;/P&gt;
&lt;P data-end="1840" data-start="1664"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1884" data-start="1842"&gt;Any guidance would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2026 08:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Batch-Job-Scheduling-with-Custom-Pod-Template-and/m-p/986789#M30804</guid>
      <dc:creator>freshstarter</dc:creator>
      <dc:date>2026-04-25T08:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya Batch Job Scheduling with Custom Pod Template and Context Configuration</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Batch-Job-Scheduling-with-Custom-Pod-Template-and/m-p/987052#M30808</link>
      <description>&lt;P&gt;For the Last Question about a UI; Does this help: The Job Scheduler in Environment Manager:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=JHh4kFGLEw0&amp;amp;t=362s" target="_blank"&gt;https://www.youtube.com/watch?v=JHh4kFGLEw0&amp;amp;t=362s&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 12:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Batch-Job-Scheduling-with-Custom-Pod-Template-and/m-p/987052#M30808</guid>
      <dc:creator>davidzanter</dc:creator>
      <dc:date>2026-05-01T12:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya Batch Job Scheduling with Custom Pod Template and Context Configuration</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Batch-Job-Scheduling-with-Custom-Pod-Template-and/m-p/987090#M30809</link>
      <description>In the SAS Viya Platform, batch servers are run by the batch service in response to calls made by the batch plugin of the CLI.&lt;BR /&gt;Compute servers are run by the compute service, and can be interactive (e.g. SAS Studio) or scheduled.&lt;BR /&gt;So if you are looking to have whatever custom settings you are applying available to jobs scheduled through the SAS Viya Platform, you would be using compute contexts, servers, pod templates and the sas.compute.server configurations.&lt;BR /&gt;As far as limiting who has access to start a compute server on a given context and under what conditions, that would be controlled through rules applied to the Create permission on the /compute/contexts/&amp;lt;contextid&amp;gt;/sessions endpoint.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 May 2026 20:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-Batch-Job-Scheduling-with-Custom-Pod-Template-and/m-p/987090#M30809</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-05-01T20:28:15Z</dc:date>
    </item>
  </channel>
</rss>

