AutomaApp / automa

A browser extension for automating your browser by connecting blocks
https://www.automa.site
Other
11.67k stars 1.27k forks source link

Schedule in a "specifc date" doesnt start at the sharp time #1811

Open armandolovera opened 2 months ago

armandolovera commented 2 months ago

Describe the bug when I set several workflows (three or four) to start at 00:00:05 "on a specific date", usually starts at 00:01:05 (with a minute or more of delay) for almost the all workflows, sometime just one start on time and the rest start with delay. I tried to set every workflows with 10 seconds of gap between each other and start 1 minute of delay as well

In the last two weeks, some days happen that neither of the workflows start at all.

There is a bug? Is impossible to fix the schedule in order to starts sharp (in the seconds set before)

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Schedule', select a few workflows, add trigger on a specific date,
  2. Select a specific date, and set the time in 00:00:04, 00:00:14; 00:00:24. (try near midnight)
  3. See error

Expected behavior workflows should start always sharp at the time.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

jingbof commented 2 months ago

Automa uses browser.alarms (see here) to create alarms. However, on Chrome, unless the extension is loaded unpackaged, the alarms it creates are not allowed to fire more than once per minute (see details here).

A couple of alternatives that might be worth trying:

  1. Use Firefox instead of Chrome
  2. Avoid scheduling more than one script per minute