Skip to content

Comments

/workflows/bulk-cancel: also cancel task with status INIT and WAIT#41

Merged
paktusov merged 1 commit intomainfrom
92-bulk-cancel-not-working
Feb 6, 2026
Merged

/workflows/bulk-cancel: also cancel task with status INIT and WAIT#41
paktusov merged 1 commit intomainfrom
92-bulk-cancel-not-working

Conversation

@HenkKalkwater
Copy link
Contributor

Previously, only tasks with status PROGRESS were cancelled. This brings it in line with /workflow/{id}/cancel.

Also added a test to verify the behaviour and changed the tasks in setUp() with state 'pending' to 'wait', since 'pending' is not a valid task state.

Fixes finmars-platform/finmars-core#92

@HenkKalkwater HenkKalkwater force-pushed the 92-bulk-cancel-not-working branch from d5e3dfd to e9c5ca7 Compare February 6, 2026 13:58
Previously, only tasks with status PROGRESS were cancelled. This brings it in
line with /workflow/{id}/cancel.

Also added a test to verify the behaviour and changed the tasks in `setUp()`
with state 'pending' to 'wait', since 'pending' is not a valid task state.

Fixes finmars-platform/finmars-core#92
@HenkKalkwater HenkKalkwater force-pushed the 92-bulk-cancel-not-working branch from e9c5ca7 to 8e03915 Compare February 6, 2026 14:11
@paktusov paktusov merged commit e111a99 into main Feb 6, 2026
2 checks passed
@paktusov paktusov deleted the 92-bulk-cancel-not-working branch February 6, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow task bulk cancel is not working

2 participants