Skip to content

Commit 1721714

Browse files
committed
Bump version to 0.35.0
1 parent 50b3036 commit 1721714

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99
]
1010

1111
[workspace.package]
12-
version = "0.34.4"
12+
version = "0.35.0"
1313

1414

1515
[workspace.lints.clippy]

libs/opsqueue_python/python/opsqueue/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class SubmissionNotCancellableError(Exception):
5050
def __init__(
5151
self,
5252
submission: opsqueue_internal.SubmissionNotCancellable,
53-
chunk: Optional[opsqueue_internal.ChunkFailed]=None,
53+
chunk: Optional[opsqueue_internal.ChunkFailed] = None,
5454
):
5555
super().__init__()
5656
self.submission = submission

libs/opsqueue_python/src/common.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,10 @@ impl From<opsqueue::common::errors::SubmissionNotCancellable> for SubmissionNotC
500500
Failed(s, c) => {
501501
let chunk = ChunkFailed::from_internal(c, &s);
502502
SubmissionNotCancellable::Failed {
503-
submission: s.into(), chunk
503+
submission: s.into(),
504+
chunk,
504505
}
505-
},
506+
}
506507
Cancelled(s) => SubmissionNotCancellable::Cancelled {
507508
submission: s.into(),
508509
},

libs/opsqueue_python/src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::error::Error;
44

55
use opsqueue::common::chunk::ChunkId;
66
use opsqueue::common::errors::{
7-
ChunkNotFound, IncorrectUsage, SubmissionNotFound, SubmissionNotCancellable,
7+
ChunkNotFound, IncorrectUsage, SubmissionNotCancellable, SubmissionNotFound,
88
UnexpectedOpsqueueConsumerServerResponse, E,
99
};
1010
use pyo3::exceptions::PyBaseException;

libs/opsqueue_python/tests/test_roundtrip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def assert_submission_failed_has_metadata(x: SubmissionFailed) -> None:
360360
assert submission is not None
361361
assert_submission_failed_has_metadata(submission.submission)
362362

363+
363364
def test_cancel_submission_not_found(
364365
opsqueue: OpsqueueProcess, any_consumer_strategy: StrategyDescription
365366
) -> None:
@@ -421,6 +422,7 @@ def test_cancel_already_cancelled(
421422
producer_client.cancel_submission(submission_id)
422423
assert isinstance(exc_info.value.submission, SubmissionNotCancellable.Cancelled)
423424

425+
424426
def test_cancel_complete_submission(
425427
opsqueue: OpsqueueProcess, any_consumer_strategy: StrategyDescription
426428
) -> None:
@@ -449,6 +451,7 @@ def run_consumer() -> None:
449451
assert isinstance(exc_info.value.submission, SubmissionNotCancellable.Completed)
450452
assert exc_info.value.chunk is None
451453

454+
452455
def test_cancel_failed_submission(
453456
opsqueue: OpsqueueProcess, any_consumer_strategy: StrategyDescription
454457
) -> None:

0 commit comments

Comments
 (0)