MetaCell / MetaCell/cloud-harness
Fix SingleTaskOperation on Argo worflows
- Dominant language
- Python
- Stars
- 19
- Forks
- 5
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 3
Description
Is my understanding that something like:
```
my_task = tasks.CustomTask('print-file', 'myapp-mytask')
op = operations.SingleTaskOperation('my-op-', my_task)
op.execute()
```
Would fail with the error:
```
[workspaces] File "/usr/src/app/api/models/population.py", line 59, in save
[workspaces] execute_generate_population_images_workflow(self.id)
[workspaces] File "/usr/src/app/api/services/workflows_service.py", line 17, in execute_generate_population_images_workflow
[workspaces] operations.SingleTaskOperation(
[workspaces] File "/libraries/cloudharness-common/cloudharness/workflows/operations.py", line 55, in execute
[workspaces] raise NotImplementedError(f"{self.__class__.__name__} is abstract")
[workspaces] NotImplementedError: SingleTaskOperation is abstract
```
CH Version: 1.0.0
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with cloudharness/workflows/operations.py around line 55 and trace the SingleTaskOperation call from api/services/workflows_service.py. Reproduce the shown CustomTask and SingleTaskOperation example, then verify the intended Argo workflow behavior no longer raises the abstract-operation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100