You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in Issue #840, a dispatch_computed_file_generation command must be build, which will be responsible for dispatching file computation jobs to Batch.
Problem or idea
The dispatch_computed_file_generation command should query the Project model for all projects in the database that do not have any ComputedFiles associated with them, iterate over those projects and then submit them to the Batch queue one by one.
From an error handling perspective, submit_batch_job could return a bool (indicating whether or not the job was successfully added to the queue). If the job was not successfully added to the job queue, one tactic could be to try submitting the job again. A possible way of doing that could be as follows:
This command should take an optional project argument. If this argument is not passed, then it should submit_jobs for computed_file generation for all projects that don't have computed_files associated with them.
submit_job should set command to python manage.py generate_computed_file --project/sample [scpca_id] --config_name [config name]
Context
As mentioned in Issue #840, a
dispatch_computed_file_generation
command must be build, which will be responsible for dispatching file computation jobs to Batch.Problem or idea
The
dispatch_computed_file_generation
command should query theProject
model for all projects in the database that do not have anyComputedFiles
associated with them, iterate over those projects and then submit them to the Batch queue one by one.The query could look as follows:
Solution or next step
From an error handling perspective,
submit_batch_job
could return abool
(indicating whether or not the job was successfully added to the queue). If the job was not successfully added to the job queue, one tactic could be to try submitting the job again. A possible way of doing that could be as follows:The text was updated successfully, but these errors were encountered: