Skip to content

v1.0.9b3

Pre-release
Pre-release

Choose a tag to compare

@SteveTh3Piirate SteveTh3Piirate released this 15 Mar 15:19
· 48 commits to master since this release

Fix watchlist asset refresh scheduling with celery-once + Corptools 3.x

Production was throwing:
TypeError: got an unexpected keyword argument 'character_ids'
when refresh_watchlist_assets queued corptools.tasks.update_subset_of_characters.

celery-once validates task kwargs against the task signature, and Corptools 3.0.0b6
uses a different parameter name than older versions.

Update refresh_watchlist_assets to introspect the corptools task run signature
and pass the correct kwarg (with a safe positional-arg fallback), restoring
watchlist asset refresh without tracebacks.

CapTrack: fix Corptools 3.0.0b7 update_char_assets enqueue (single-ID task)
Corptools 3.0.0b7 corptools.tasks.update_char_assets is a single-character task
that expects character_id=<int>. CapTrack could enqueue it with a list of IDs,
causing worker errors:

TypeError: Field 'character_id' expected a number but got []

Update refresh_watchlist_assets to special-case the b7 task-name string and
enqueue it per-character (one task per character_id), preventing list-to-int
type errors and restoring stable asset refresh on workers.