Skip to content

Exit op_index early in Aleph Worker#3781

Merged
stchris merged 1 commit intorelease/4.0.0from
hotfix/exit-indexing-early
Jun 20, 2024
Merged

Exit op_index early in Aleph Worker#3781
stchris merged 1 commit intorelease/4.0.0from
hotfix/exit-indexing-early

Conversation

@catileptic
Copy link
Contributor

This hotfix addresses the following stacktrace:

Traceback (most recent call last):
  File "/aleph/aleph/worker.py", line 146, in periodic
    self.run_indexing_batches()
  File "/aleph/aleph/worker.py", line 208, in run_indexing_batches
    op_index(collection_id, batch, worker=self)
  File "/aleph/aleph/worker.py", line 45, in op_index
    index_many(collection, sync=sync, tasks=batch)
  File "/aleph/aleph/logic/processing.py", line 22, in index_many
    aggregator = get_aggregator(collection)
  File "/aleph/aleph/logic/aggregator.py", line 14, in get_aggregator
    dataset = get_aggregator_name(collection)
  File "/aleph/aleph/logic/aggregator.py", line 9, in get_aggregator_name
    return "collection_%s" % collection.id
AttributeError: 'NoneType' object has no attribute 'id'"

@stchris stchris merged commit 7483479 into release/4.0.0 Jun 20, 2024
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.

2 participants