Infos:
- Used Zammad version: 3.1
- Used Zammad installation source: Packager.io
- Operating system: Ubuntu 18.04.3 LTS
- Browser + version: Chrome 77
- Elasticsearch: 7.3.2
- PostgreSQL: 10.10
Expected behavior:
- OTRS Importer finishes and returns to console prompt.
- Elasticsearch indexing can be disabled
Actual behavior:
When importing with the OTRS importer using the setting
Delayed::Worker.max_run_time = 7.days
I am seeing the import running continously until the message
> thread#3: ... no more work.
appears as a result. No further action on this console.
When I disable Import mode and set sysytem_init_done to login I see the hundreds of thousands of delayed jobs. From production log I can see these are Elasticsearch indexing jobs. All as expected.
Steps to reproduce the behavior:
- Import large OTRS System with Import::OTRS.start
Actual question
Is there a way to temporarily disable Elasticsearch during import. As I would like to perform several steps after the “raw” OTRS Import.
These include several “expensive” operations like
Ticket.where(group_id: ‘20’).each {|ticket|
ticket.tag_add(‘Office’, 1)
ticket.update(group_id: 63)
}
to move from our chaotic OTRS queue / sub /sub queue structure to a more coordinated Group and Tag structure in Zammad (I it !! )as well as changing ticket owner for thousands of tickets to dedicated IT users (to circumvent the current restriction of being agent and customer at the same time) etc. All these operations trigger another elasticsearch delayed job.
My idea is to Stop Elasticsearch indexing before importing from OTRS. Do all the modification through the rails console. And then go through one clean indexing. Is this somehow possible?
Thanks Alex