enso icon indicating copy to clipboard operation
enso copied to clipboard

Async Execution (project scheduling)

Open somebody1234 opened this issue 1 year ago โ€ข 1 comments

Pull Request Description

:warning: This is currently blocked waiting for the corresponding backend functionality.

  • Frontend part of https://github.com/enso-org/cloud-v2/issues/1392
    • New modal to schedule project executions
    • New tab in asset right menu that lists project executions
    • Choose repeat interval (hourly, daily, weekly, monthly)
    • Choose parallel mode to control behavior when multiple executions are scheduled at the same time (ignore new execution if old one is not finished, cancel old execution, run both executions at the same time)
    • Select and display maximum execution time
    • "Use Current Version" button
    • Paused ("disabled") schedules

Important Notes

None

Screenshots

"New Schedule" dialog image

List of execution schedules: image

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • [x] ~~The documentation has been updated, if necessary.~~
  • [x] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • [x] All code follows the Scala, Java, TypeScript, and Rust style guides. In case you are using a language not listed above, follow the Rust style guide.
  • [ ] Unit tests have been written where possible.

somebody1234 avatar Aug 16 '24 04:08 somebody1234

marking as draft as it is still blocked by backend endpoints

somebody1234 avatar Aug 22 '24 09:08 somebody1234

@indiv0 note that if (when?) you do end up testing this PR that this PR mocks out the endpoints, the actual impls need to be uncommented (and the mocks removed) to test with an actual backend

somebody1234 avatar Sep 26 '24 09:09 somebody1234

๐Ÿงช Storybook is successfully deployed!

๐Ÿ“Š Dashboard:

  • ๐Ÿ‘€ Review changes: https://www.chromatic.com/build?appId=673738989fc3e8430364197e&number=1141
  • ๐Ÿ‘จโ€๐ŸŽจ Preview storybook: https://673738989fc3e8430364197e-cblvqofcau.chromatic.com/

github-actions[bot] avatar Nov 21 '24 11:11 github-actions[bot]

Eventhough it's blocked by the backend, nothing's stopping us to merge it behind a flag

MrFlashAccount avatar Nov 21 '24 19:11 MrFlashAccount

Lets simplify things and inspire with google calendar scheduler (without custom): Screenshot 2024-11-29 at 12 54 45 Screenshot 2024-11-29 at 12 54 37

image

Description:

  1. Header: Schedule task
  2. First row: Start date with date, time, timezone selectors
  3. 2nd row: repetition selector: Does not repeat (default), Hourly, Daily, 30th in Month, Last Sunday in Month (last 2 based on selected date)
  4. Hourly: select first / last hour (range)
  5. Daily: Select which days of the week should run
  6. 30th in Month, Last Sunday in Month: Choose which months,

PabloBuchu avatar Nov 29 '24 12:11 PabloBuchu

  1. First occurrence input display date time but I can only accurately edit date. It does not allow my to adjust hour or minutes.
  2. Disabled (click to enable) click resulted in 404 POST to https://xw0g8j3tsb.execute-api.eu-west-1.amazonaws.com/executions/undefined 2.1 Same with delete 2.2 Same with sync
  3. When are the executions fetched? I saw the request only once per project.. I removed them from db and still see them in GUI
  4. Thats not much visible.. lets have a number of scheduled executions per day here Screenshot 2025-01-20 at 15 10 27
  5. New schedule in executions tab opens a dialog while the same button in calendar opens bellow... We should have this consistent and always open in dialog
  6. Also when I try to submit new schedule from the calendar tab I ends with Enso being reloaded

PabloBuchu avatar Jan 20 '25 14:01 PabloBuchu

When are the executions fetched? I saw the request only once per project.. I removed them from db and still see them in GUI

They're cached for a couple of minutes, as any query. guess we need refetch interval here aswell?

MrFlashAccount avatar Jan 21 '25 13:01 MrFlashAccount