Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add the ability to add a query argument
delay
to theupdate_job_status
callback, e.g.:The server will wait for
delay
seconds before callingupdate_status
on the job.Note:
This "delay" capability was added as a general capability, and the ability schedule periodic execution of a function was included (though not used by the
update_job_status
callback). I have not added this to the Tethys SDK because I would like to get more experience with it before deciding if it should be made "officially" available to apps. I don't consider it to be a robust task scheduling capability since all tasks are stored in memory and would be lost if the server restarts.Changes Made to Code:
update_job_status
callback to be async and to support a delaytethys_apps
totethys_compute
tethys_gizmos
totethys_compute
Quality Checks