<?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>Question Re: Start CAP without express to run a Cloud Foundry task in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/start-cap-without-express-to-run-a-cloud-foundry-task/qaa-p/13667967#M4825478</link>
    <description>&lt;P&gt;For executing heavy load tasks and periodic events in CAP you can use the following package:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cap-js-community/event-queue/" rel="nofollow noreferrer" target="_blank"&gt;https://github.com/cap-js-community/event-queue/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cap-js-community.github.io/event-queue/" rel="nofollow noreferrer" target="_blank"&gt;https://cap-js-community.github.io/event-queue/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The packages allow you to execute jobs and periodic job asynchronously for every onboarded tenant. The package does not require any additional services or components.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 08:31:20 GMT</pubDate>
    <dc:creator>maxgruenfelder</dc:creator>
    <dc:date>2024-04-12T08:31:20Z</dc:date>
    <item>
      <title>Start CAP without express to run a Cloud Foundry task</title>
      <link>https://community.sap.com/t5/technology-q-a/start-cap-without-express-to-run-a-cloud-foundry-task/qaq-p/13593040</link>
      <description>&lt;P&gt;Hello CAP Team, Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/152882"&gt;@Daniel7&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have a CAP application that creates quite huge Excel files and allows also the upload of the edited files. The uploaded files are processed and data is written to S/4HANA. This download and upload processing is quite resource extensive and sometimes blocks the interactive usage of the application. Due to that reason I want to do the processing in a &lt;A href="https://docs.cloudfoundry.org/devguide/using-tasks.html" target="_blank" rel="noopener"&gt;Cloud Foundry Task&lt;/A&gt;. Marius Obert lists&amp;nbsp;"Running a data processing script" as one use cases in the blog post&amp;nbsp;&lt;A href="https://community.sap.com/t5/technology-blogs-by-sap/cloudfoundryfun-4-how-to-use-cloud-foundry-tasks/ba-p/13390953" target="_blank" rel="noopener"&gt;CloudFoundryFun #4 – How to use Cloud Foundry Tasks&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;So I went forward and created a first prototype with&amp;nbsp;&lt;A href="https://github.com/gregorwolf/sap-support-message-reporting/blob/main/srv/loadDataFromMock.js" target="_blank" rel="noopener"&gt;srv/loadDataFromMock.js&lt;/A&gt;. As I do not need a CAP Server providing an HTTP endpoint I used (with a hint from&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/202584"&gt;@david_kunz2&lt;/a&gt;&amp;nbsp;&amp;nbsp;) the example from the CAP documentation for the&amp;nbsp;&lt;A href="https://cap.cloud.sap/docs/node.js/cds-server#built-in-server-js" target="_self"&gt;Built-in server.js&lt;/A&gt;. What would be great if @sap/cds/server.js would provide directly a way to start the CAP standard server but just without express and a http server.&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 16:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-cap-without-express-to-run-a-cloud-foundry-task/qaq-p/13593040</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2024-02-02T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Start CAP without express to run a Cloud Foundry task</title>
      <link>https://community.sap.com/t5/technology-q-a/start-cap-without-express-to-run-a-cloud-foundry-task/qaa-p/13667967#M4825478</link>
      <description>&lt;P&gt;For executing heavy load tasks and periodic events in CAP you can use the following package:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cap-js-community/event-queue/" rel="nofollow noreferrer" target="_blank"&gt;https://github.com/cap-js-community/event-queue/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cap-js-community.github.io/event-queue/" rel="nofollow noreferrer" target="_blank"&gt;https://cap-js-community.github.io/event-queue/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The packages allow you to execute jobs and periodic job asynchronously for every onboarded tenant. The package does not require any additional services or components.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 08:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/start-cap-without-express-to-run-a-cloud-foundry-task/qaa-p/13667967#M4825478</guid>
      <dc:creator>maxgruenfelder</dc:creator>
      <dc:date>2024-04-12T08:31:20Z</dc:date>
    </item>
  </channel>
</rss>

