Skip to content

Better handling of GeneticCalculationsImportTask cancels#975

Merged
bbimber merged 2 commits intorelease25.3-SNAPSHOTfrom
25.3_fb_cancel
Jun 26, 2025
Merged

Better handling of GeneticCalculationsImportTask cancels#975
bbimber merged 2 commits intorelease25.3-SNAPSHOTfrom
25.3_fb_cancel

Conversation

@bbimber
Copy link
Collaborator

@bbimber bbimber commented Jun 25, 2025

If the user hits cancel on a pipeline job, they should reasonably expect the job to cancel. While GeneticCalculationsImportTask already has a check for job.isCancelled(), I dont think isCancelled() actually returns the correct value unless job.updateStatusForTask() is called. This PR adds this, which makes the job check the current status of the job every time it completes a batch of imports, and will therefore cancel the job in a more timely manner.

While I was editing this, I also made an option to specify dayOfWeek, in addition to hourOfDay for the cron schedule. If blank the job will run nightly, as-is. The would allow admins to pick a day of the week to convert this into a weekly job.

@bbimber bbimber requested a review from labkey-martyp as a code owner June 25, 2025 04:14
Copy link
Contributor

@labkey-martyp labkey-martyp left a comment

Choose a reason for hiding this comment

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

Looks good.

@bbimber bbimber merged commit 6e7bcbc into release25.3-SNAPSHOT Jun 26, 2025
6 of 8 checks passed
@bbimber bbimber deleted the 25.3_fb_cancel branch June 26, 2025 13:01
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