Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Nov 19, 2024
1 parent ad773e5 commit 4cee5d0
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,27 @@ class TaskSchedulingError(ComputationalSchedulerError):
msg_template = "Computational scheduler: Task {node_id} in project {project_id} could not be scheduled {msg}"


class MissingComputationalResourcesError(TaskSchedulingError):
class MissingComputationalResourcesError(
TaskSchedulingError
): # pylint: disable=too-many-ancestors
msg_template = (
"Service {service_name}:{service_version} cannot be scheduled "
"on cluster {cluster_id}: task needs '{task_resources}', "
"cluster has {cluster_resources}"
)


class InsuficientComputationalResourcesError(TaskSchedulingError):
class InsuficientComputationalResourcesError(
TaskSchedulingError
): # pylint: disable=too-many-ancestors
msg_template: str = (
"Insufficient computational resources to run {service_name}:{service_version} with {service_requested_resources} on cluster {cluster_id}."
"Cluster available workers: {cluster_available_resources}"
"TIP: Reduce service required resources or contact oSparc support"
)


class PortsValidationError(TaskSchedulingError):
class PortsValidationError(TaskSchedulingError): # pylint: disable=too-many-ancestors
msg_template: str = (
"Node {node_id} in {project_id} with ports having invalid values {errors_list}"
)
Expand Down

0 comments on commit 4cee5d0

Please sign in to comment.