-
Notifications
You must be signed in to change notification settings - Fork 262
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
Backup xo task #7963
base: master
Are you sure you want to change the base?
Backup xo task #7963
Conversation
@@ -114,6 +114,7 @@ export const VmsRemote = class RemoteVmsBackupRunner extends Abstract { | |||
.run(async () => { | |||
try { | |||
const result = await vmBackup.run() | |||
// TODO : handle next line | |||
task.success(result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@julien-f I don't really know how to handle this part with XO tasks, I have not found a similar method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember exactly how it works or why we did this, but I think we need to talk about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can cheat to achieve this:
task.run(() => result)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I suspect it will not work because the new implementation does not allow nested runs for the same task.
7ccedc2
to
117b902
Compare
Description
Replacing backup tasks by XO tasks.
Checklist
Fixes #007
,See xoa-support#42
,See https://...
)Introduced by
CHANGELOG.unreleased.md