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

Rename Job.__call__ to job.run in scheduler #7615

Merged

Conversation

jonathan-eq
Copy link
Contributor

@jonathan-eq jonathan-eq commented Apr 10, 2024

Issue
Resolves #7591

Approach
The commit in this PR renames Job.call to job.run in scheduler.

(Screenshot of new behavior in GUI if applicable)

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure tests pass locally (after every commit!)

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@jonathan-eq jonathan-eq self-assigned this Apr 10, 2024
@jonathan-eq jonathan-eq added maintenance Not a bug now but could be one day, repaying technical debt release-notes:skip If there should be no mention of this in release notes scheduler labels Apr 10, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.18%. Comparing base (afd2437) to head (740e865).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7615      +/-   ##
==========================================
+ Coverage   84.50%   85.18%   +0.67%     
==========================================
  Files         383      383              
  Lines       23305    23305              
  Branches      886      883       -3     
==========================================
+ Hits        19694    19852     +158     
+ Misses       3503     3345     -158     
  Partials      108      108              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jonathan-eq jonathan-eq force-pushed the rename-job__call__-in-scheduler branch from 8e20302 to bae11c0 Compare April 10, 2024 06:53
@@ -91,7 +91,7 @@ async def test_submitted_job_is_cancelled(realization, mock_event):
],
)
@pytest.mark.asyncio
async def test_call(
async def test_run(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename suggestion: test_that_job_run_successfully ?

@jonathan-eq jonathan-eq force-pushed the rename-job__call__-in-scheduler branch from bae11c0 to 740e865 Compare April 10, 2024 07:14
Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice @jonathan-eq ! 🚀

@jonathan-eq jonathan-eq merged commit bc992ec into equinor:main Apr 10, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Not a bug now but could be one day, repaying technical debt release-notes:skip If there should be no mention of this in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Job.__call__ to job.run in scheduler
3 participants