Skip to content

[JIM-181] Free file descriptors. - #25018

Open
ba1ash wants to merge 67 commits into
devfrom
bug/jim-181-ulimit-open-files-may-limit-migration-process
Open

[JIM-181] Free file descriptors.#25018
ba1ash wants to merge 67 commits into
devfrom
bug/jim-181-ulimit-open-files-may-limit-migration-process

Conversation

@ba1ash

@ba1ash ba1ash commented Aug 31, 2026

Copy link
Copy Markdown
Member

https://community.openproject.org/wp/JIM-181

File.unlink frees the name, but does not free fd. File#close frees fd. So, we have to call it manually after tempfile has been used.

ba1ash and others added 30 commits July 27, 2026 09:19
https://community.openproject.org/wp/JIM-62

- Do not cache state_machine in JiraImport
  Causes problems on "#reload". "#current_state" returns old value.
- Allow :reverting from :import_error state.
- discard :queued batch jobs after transition to :import_aborting state.
- Introduce PorgressableJob class.
- Fix progress calculation.
  Use .where(jira_import_id:). So, only relevant to this particular jira_import
  record are used in progress calculation
- Remove unused jobs.
…uring-import-of-projects

# Conflicts:
#	app/components/admin/import/jira/import_runs/wizard_step_confirm_import_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_fetch_data_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_import_scope_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_review_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_review_component.rb
#	app/controllers/admin/import/jira/import_runs_controller.rb
#	app/views/admin/import/jira/import_runs/show.html.erb
as-op and others added 27 commits July 30, 2026 14:50
…uring-import-of-projects

# Conflicts:
#	app/models/import/jira_import.rb
#	app/workers/import/jira_create_project_work_packages_job.rb
#	spec/models/import/jira_import_spec.rb
…-progress-during-import-of-projects

# Conflicts:
#	app/components/admin/import/jira/import_runs/wizard_step_confirm_import_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_review_component.html.erb
#	app/workers/import/jira_create_project_work_packages_job.rb
…grator-shows-progress-during-import-of-projects
Reason is to have RESTART IDENTITY added.
So, ids starts from 1 on the truncated tables.
Don't use removed columns.
Co-authored-by: Andrej <77627197+as-op@users.noreply.github.com>
Co-authored-by: Andrej <77627197+as-op@users.noreply.github.com>
…field_builder.rb

Co-authored-by: Andrej <77627197+as-op@users.noreply.github.com>
Co-authored-by: Andrej <77627197+as-op@users.noreply.github.com>
Co-authored-by: Andrej <77627197+as-op@users.noreply.github.com>
…grator-shows-progress-during-import-of-projects
- Show links to good_job dashboard only if the dashboard is enabled.
- Resolve job status icon in one place instead of 3.
- Use sync icon for in progress jobs.
Co-authored-by: Andrej <77627197+as-op@users.noreply.github.com>
https://community.openproject.org/wp/JIM-181

`File.unlink` frees the name, but does not free fd.
`File#close` frees fd. So, we have to call it manually after tempfile has been used.
@ba1ash ba1ash self-assigned this Aug 31, 2026
@opf opf deleted a comment from github-actions Bot Aug 31, 2026
Base automatically changed from feature/jim-62-jira-migrator-shows-progress-during-import-of-projects to dev August 31, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants