Skip to content

Commit

Permalink
Fix execution errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koparasy committed Aug 23, 2024
1 parent 046f63d commit c29a5b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/AMSWorkflow/ams/ams_flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import flux
from queue import Queue

from ams.orchestrator import AvailableDomains, DomainSpec


# pylint: disable=too-many-instance-attributes
class AMSFluxExecutorFuture(Future):
Expand Down Expand Up @@ -55,9 +53,9 @@ def __get_uri_cb(fut, eventlog):
def __init__(
self,
owning_thread_id: int,
flux_executor: Union[AMSFluxOrchestratorExecutor, AMSFluxExecutor],
flux_executor,
track_uri: bool,
domain_descr: DomainSpec,
domain_descr,
*args,
**kwargs,
):
Expand Down Expand Up @@ -436,12 +434,12 @@ class AMSFakeFluxOrchestatorExecutor(ThreadPoolExecutor):
job.
"""

def __init__(self, o_queue: Queue, domains: AvailableDomains, *args, **kwargs):
def __init__(self, o_queue: Queue, domains, *args, **kwargs):
self._o_queue = o_queue
self._domains = domains
super().__init__(*args, **kwargs)

def submit(self, domain: DomainSpec, job_spec):
def submit(self, domain, job_spec):
"""Submit a jobspec to Flux and return a ``FluxExecutorFuture``.
Accepts the same positional and keyword arguments as ``flux.job.submit``,
Expand Down
2 changes: 2 additions & 0 deletions src/AMSWorkflow/ams/ams_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from typing import Optional
from dataclasses import dataclass, fields
from ams import util
from ams.store import AMSDataStore
from ams.rmq import AMSRMQConfiguration
from typing import Dict, List, Union, Optional, Mapping
from pathlib import Path

Expand Down

0 comments on commit c29a5b3

Please sign in to comment.