Skip to content

Commit

Permalink
fixed another style test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Dawson committed Sep 6, 2023
1 parent 01e1c02 commit e430235
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
26 changes: 12 additions & 14 deletions cylc/uiserver/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ async def scan(
):
await workflows_mgr.scan()
return cls._return("Workflow(s) scanned")

@classmethod
async def play(cls, workflows, args, workflows_mgr, log):
"""Calls `cylc play`."""
Expand Down Expand Up @@ -543,29 +543,27 @@ async def service(
workflows: Iterable['Tokens'],
kwargs: Dict[str, Any]
) -> List[Union[bool, str]]:
if command == 'clean':
return await Services.clean(

SERVICES = {
'clean': Services.clean(
workflows,
kwargs,
self.workflows_mgr,
log=self.log,
executor=self.executor
)

elif command == 'play':
return await Services.play(
),
'play': Services.play(
workflows,
kwargs,
self.workflows_mgr,
log=self.log
)

elif command == 'scan':
return await Services.scan(
log=self.log,
),
'scan': Services.scan(
kwargs,
self.workflows_mgr,
)
# self.workflows_mgr.scan()
),
}
return await SERVICES[command]

raise NotImplementedError()

Expand Down
1 change: 0 additions & 1 deletion cylc/uiserver/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ class Meta:
''')
resolver = partial(mutator, command='clean')


class Arguments:
workflows = graphene.List(WorkflowID, required=True)
rm = graphene.String(
Expand Down

0 comments on commit e430235

Please sign in to comment.