Skip to content

Skip deleted jobs in utask_main scheduling - #5629

Open
hunsche wants to merge 1 commit into
masterfrom
fix/u24-scheduler-spec-and-nofile-ci
Open

hunsche wants to merge 1 commit into
masterfrom
fix/u24-scheduler-spec-and-nofile-ci

Conversation

@hunsche

@hunsche hunsche commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Skip deleted Job entities during utask_main remote scheduling (Related: b/526881754; Ubuntu 24.04 PAM and Docker build checks split into #5657):

  • Skip deleted jobs in create_utask_main_jobs (batch/service.py and k8s/service.py): When a Job entity has been removed from Datastore, _get_config_names omits it from config_map, and indexing specs[(command, job_type)] / configs[(command, job_type)] raised KeyError, aborting scheduling for valid tasks in the same batch while leaving stale messages unacknowledged. Skipping tasks missing from config_map with a single logs.error per (command, job_type) lets valid tasks proceed and drains stale deleted-job messages cleanly.
  • Preserve ValueError for unmapped platforms: Missing platform entries in mapping continue raising ValueError so RemoteTaskGate returns affected tasks as uncreated rather than acknowledging them.

Testing

  • butler.py format and butler.py lint
  • butler.py py_unittest -t core -p batch_service_test.py (23/23 passed)
  • butler.py py_unittest -t core -p k8s_service_test.py (9/9 passed)
  • Deployed and verified end-to-end in clusterfuzz-development

@hunsche
hunsche requested review from a team as code owners November 20, 2026 01:56
@hunsche
hunsche force-pushed the fix/u24-scheduler-spec-and-nofile-ci branch from 5dc32f5 to 0043de2 Compare November 25, 2026 16:21
@hunsche
hunsche force-pushed the fix/u24-scheduler-spec-and-nofile-ci branch from 0043de2 to 0a18091 Compare November 25, 2026 16:57

@ViniciustCosta ViniciustCosta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we split this into separate PR since the CI and the utask_main scheduling enhancements are unrelated?

Comment thread docker/base/ubuntu-24-04.Dockerfile Resolved
Skip tasks whose Job entity was deleted from Datastore in GCP Batch and
Kubernetes utask_main scheduling with a single error log per
(command, job_type), while preserving ValueError for unmapped platforms
so config errors remain unscheduled rather than acknowledged.

Related: b/526881754
@hunsche
hunsche force-pushed the fix/u24-scheduler-spec-and-nofile-ci branch from 0a18091 to fae1dba Compare November 26, 2026 01:24
@hunsche hunsche changed the title Skip deleted jobs in utask_main scheduling and enforce U24 nofile in CI Skip deleted jobs in utask_main scheduling Nov 26, 2026
@hunsche

hunsche commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Split the Ubuntu 24.04 PAM and Docker build checks into #5657, keeping this PR focused on skipping deleted jobs in utask_main scheduling.

This branch has not been deployed

No deployments
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