Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only mark scenario as run once it finished running successfully [MRXN23-280] #1431

Conversation

hotzevzl
Copy link
Member

@hotzevzl hotzevzl commented Aug 8, 2023

Only mark a scenario as ranAtLeastOnce: true after it has run fully and successfully.

Testing instructions

Create new scenario, set it to run with a high enough number of iteration to give some time to check if the Scenario.ranAtLeastOnce flag is flipped from the initial default (false) to true while the Marxan solver is running.

Without this PR, the property should be flipped almost instantly after pressing the Run button (or triggering a marxan run via the API directly). With this PR, the property should only be flipped to true only after Marxan has run fully and successfully (so, it should stay false if the Marxan run is interrupted in flight or fails for whatever reason.

Feature relevant tickets

https://vizzuality.atlassian.net/browse/MRXN23-280


Checklist before submitting

  • Meaningful commits and code rebased on develop.
  • If this PR adds feature that should be tested for regressions when
    deploying to staging/production, please add brief testing instructions
    to the deploy checklist (docs/deployment-checklist.md)
  • Update CHANGELOG file

@vercel
Copy link

vercel bot commented Aug 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marxan ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 1:30pm

@hotzevzl hotzevzl marked this pull request as draft August 8, 2023 13:46
@hotzevzl
Copy link
Member Author

@yulia-bel don't forget a yarn format once done with everything here 😉

@yulia-bel yulia-bel force-pushed the chore/api/MRXN23-280_only-mark-scenario-as-run-once-it-finished-running-successfully branch from a5e77e0 to a2916bd Compare August 11, 2023 10:18
@hotzevzl
Copy link
Member Author

@yulia-bel thanks! let's merge 🚀

@yulia-bel yulia-bel marked this pull request as ready for review August 11, 2023 14:40
@yulia-bel yulia-bel merged commit a91223d into develop Aug 11, 2023
@yulia-bel yulia-bel deleted the chore/api/MRXN23-280_only-mark-scenario-as-run-once-it-finished-running-successfully branch August 11, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants