archethic-foundation / archethic-foundation/archethic-node

SC: What happens when multiple triggers overlap?

Open
#868 0 comments 0 reactions 0 assignees View on GitHub
question smart contracts to-analyze
Dominant language
Elixir
Stars
82
Forks
24
PR merge metrics
No merged PRs in 30d

Description

### Describe the problem you discovered

This is an analysis issue. There may or may not be an issue.

Scenario: 2 triggers overlap once a day

```
# every day
actions triggered_by: interval, at: "0 0 0 * *" do
...
end

# every minutes
actions triggered_by: interval, at: "0 * * * *" do
...
end
```

Is this handled correctly? Should we allow it?

### Describe the solution you'd like

_No response_

Contributor guide

Open the contributing guide

Research direction

Use the two interval-trigger examples in the issue as the starting scenario: one runs daily and one runs hourly, overlapping once per day. Determine whether the overlap is handled correctly and whether overlapping triggers should be allowed; done requires a documented decision about the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.