Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSE-734 Fix: Asynchronous Project Import #535

Merged
merged 4 commits into from
Jan 19, 2024
Merged

RSE-734 Fix: Asynchronous Project Import #535

merged 4 commits into from
Jan 19, 2024

Conversation

DarwisNarvaezDev
Copy link
Contributor

@DarwisNarvaezDev DarwisNarvaezDev commented Oct 30, 2023

RSE-734 Fix: Asynchronous Project Import

To start new asynchronous import process and request status of an ongoing process.

To QA 🧪

To call the new importer, make sure you have the right environment variables, but the most important of all is this: RD_HTTP_TIMEOUT = 21600 because if we update a big file, the first phase of the import is transactional, a timeout could end in a rollback.

Then, call the endpoint with something like this:
rd-cli.jar -jar projects archives import -cairs -f /path/to/file/project.jar --project=my-project (the "i" hyphen trigger the async import)

Once the api returns the "started" message, request status:
rd-cli.jar -jar projects archives async-import-status --project=my-project

@DarwisNarvaezDev DarwisNarvaezDev marked this pull request as draft October 30, 2023 17:23
@DarwisNarvaezDev DarwisNarvaezDev marked this pull request as ready for review January 15, 2024 16:25
Copy link

@alexander-variacode alexander-variacode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DarwisNarvaezDev DarwisNarvaezDev merged commit 904af23 into main Jan 19, 2024
7 checks passed
@DarwisNarvaezDev DarwisNarvaezDev deleted the RSE-734 branch January 19, 2024 16:58
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