FarmBot / FarmBot/farmbot_os

Boot Sequence execution may be delayed by earlier (overdue) FarmEvent sequence executions

Open
#1,493 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Elixir
Stars
1.2k
Forks
286
PR merge metrics
No merged PRs in 30d

Description

For the case where FBOS has been down (powered off, e.g.) for more than 15 minutes and an existing Sequence Farm Event execution becomes **_due_** within a time window starting 15 minutes prior to boot up, then the overdue Farm Event sequence will run before the Boot Sequence (see pic.)

I'd like to work on a solution but first I have questions :)
* Does FBOS reaally need to deal with overdue executions scheduled 15 minutes in the past ?
(@RickCarlino was surprised the code did this)
* The CeleryScript Scheduler begins work on these overdue executions even well before the firmware is ready so they fail if they need the firmware !
What is the desired user story here ?

Thanks :slightly_smiling_face:

![Screenshot from 2022-04-30 14-16-48](https://user-images.githubusercontent.com/1224439/166097088-b178bd56-12e5-4f6d-a984-d3a914de4275.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.