Revision bc447b5b
Von Sven Schöling vor fast 12 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
26 | 26 |
( |
27 | 27 |
scalar => [ qw(type profile file all_profiles all_charsets sep_char all_sep_chars quote_char all_quote_chars escape_char all_escape_chars all_buchungsgruppen all_units |
28 | 28 |
import_status errors headers raw_data_headers info_headers data num_imported num_importable displayable_columns file) ], |
29 |
'scalar --get_set_init' => [ qw(worker) ], |
|
29 |
'scalar --get_set_init' => [ qw(worker task_server) ],
|
|
30 | 30 |
'array' => [ |
31 | 31 |
progress_tracker => { }, |
32 | 32 |
add_progress_tracker => { interface => 'add', hash_key => 'progress_tracker' }, |
... | ... | |
263 | 263 |
test => $params{test}, |
264 | 264 |
)->save; |
265 | 265 |
|
266 |
SL::System::TaskServer->start_if_not_running; |
|
267 |
SL::System::TaskServer->wake_up; |
|
266 |
if ($self->task_server->is_running) { |
|
267 |
$self->task_server->wake_up; |
|
268 |
} else { |
|
269 |
$self->task_server->start; |
|
270 |
} |
|
268 | 271 |
|
269 | 272 |
flash('info', $::locale->text('Your import is beig processed.')); |
270 | 273 |
|
... | ... | |
470 | 473 |
} |
471 | 474 |
} |
472 | 475 |
|
476 |
sub init_task_server { |
|
477 |
SL::System::TaskServer->new; |
|
478 |
} |
|
473 | 479 |
|
474 | 480 |
sub cleanup_reports { |
475 | 481 |
SL::DB::Manager::CsvImportReport->cleanup; |
Auch abrufbar als: Unified diff
neustart bug von taskserver gefixt