whole-tale / girder_wholetale

Girder plugin providing basic Whole Tale functionality
BSD 3-Clause "New" or "Revised" License
3 stars 5 forks source link

fix: override jobInfoSpec to allow to pass token #561

Closed Xarthisius closed 1 year ago

Xarthisius commented 1 year ago

Default jobInfo creation for celery tasks doesn't allow to pass an existing token. This PR overrides the default worker event handler and replaces it with a version that consumes token field from the job.

Xarthisius commented 1 year ago

Needed for https://github.com/whole-tale/wt_versioning/pull/49

codecov[bot] commented 1 year ago

Codecov Report

Base: 92.81% // Head: 92.82% // Increases project coverage by +0.01% :tada:

Coverage data is based on head (2cb6a4b) compared to base (fc1322e). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #561 +/- ## ========================================== + Coverage 92.81% 92.82% +0.01% ========================================== Files 60 60 Lines 4787 4794 +7 ========================================== + Hits 4443 4450 +7 Misses 344 344 ``` | [Impacted Files](https://codecov.io/gh/whole-tale/girder_wholetale/pull/561?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=whole-tale) | Coverage Δ | | |---|---|---| | [server/\_\_init\_\_.py](https://codecov.io/gh/whole-tale/girder_wholetale/pull/561/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=whole-tale#diff-c2VydmVyL19faW5pdF9fLnB5) | `90.80% <100.00%> (+0.18%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=whole-tale). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=whole-tale)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.