adobe / adobe/aio-cli-plugin-runtime
Updating alarms feed params does not change scheduled trigger execution
- Dominant language
- JavaScript
- Stars
- 21
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
In the manifest.yml file, you can specify schedule cron jobs with trigger feeds and rules.
```yaml
actions:
import-users:
function: actions/import-user/index.js
runtime: 'nodejs:12'
triggers:
sync-users:
feed: /whisk.system/alarms/interval
inputs:
minutes: 1
rules:
sync-users-rule:
trigger: sync-users
action: import-users
```
After that you might want to update the interval to be 3 minutes instead of 1. Then `aio app deploy`. After redeployed you can check the info of `sync-users` trigger. It shows 3 minutes correctly.
```bash
{
"annotations": [
{
"key": "whisk-managed",
"value": {
...
}
},
{
"key": "feed",
"value": "/whisk.system/alarms/interval"
}
],
"limits": {},
"name": "sync-users",
"namespace": "my-namespace",
"parameters": [
{
"key": "minutes",
"value": 3
}
],
"publish": false,
"rules": {
"my-namespace/sync-users-rule": {
"action": {
"name": "import-users",
"path": "my-namespace/test-app-alarms-0.0.1"
},
"status": "active"
}
},
"updated": 1605187489818,
"version": "0.0.6"
}
```
However the trigger is still fired every minute, like it was never updated.
This could be an issue with the alarms package itself, but creating this ticket for triaging purpose.
Contributor guide
Research direction
Reproduce the behavior from the manifest.yml example by deploying with `aio app deploy`, then inspect the trigger info and the alarms package behavior. Compare the reported interval with the actual firing cadence; done means updating the feed parameters changes the scheduled execution interval or clearly identifies the external alarms component responsible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100