Scheduler job in Firefly / Runtime | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

sarahxxu
Adobe Employee
Adobe Employee
August 26, 2020

Hi @eldhov19157560,

 

Yes the alarm package is available.

 

You can read more about it here https://github.com/AdobeDocs/adobeio-runtime/blob/33d0979a45b9e35e8addaad7e97dfb00f8ea5e12/reference/prepackages.md#using-the-alarms-package

 

The documentation shows an example for directly using the cli to set up triggers, but you can easily define the trigger through the manifest file. Here's an example manifest file for that. 

 

 

Manifest File Example: “Hello world” Action with a compatible Trigger and Rule

package:
  name: hello_world_package
  version: 1.0
  license: Apache-2.0
  actions:
    hello_world_triggerrule:
      function: src/hello_plus.js
      runtime: nodejs
      inputs:
        name: string
        place: string
        children: integer
        height: float
      outputs:
        greeting: string
        details: string

  triggers:
    meetPerson:
      inputs:
        name: Sam
        place: the Shire
        children: 13
        height: 1.2

  rules:
    meetPersonRule:
      trigger: meetPerson
      action: hello_world_triggerrule
Urs_Boller
Community Advisor
Community Advisor
August 26, 2020
Hi @sarahxxu how would my trigger look like if I want to have it triggered daily as a cron job?
Urs_Boller
Community Advisor
Community Advisor
August 26, 2020

based on the idea from @sarahxxu I found this blog post and it exactly describes the steps to make within the app: https://medium.com/openwhisk/whisk-deploy-alarm-trigger-6c0984b06745