Skip to content

Commit

Permalink
Internal
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 561052201
Change-Id: I60fd51bb8eb50f795a2d79ebdcb7c015f3ba2a0e
GitOrigin-RevId: 820eccc7d8d0994b3420b2fa5a1a97776a81e874
  • Loading branch information
DeepMind Team authored and andrewluchen committed Sep 4, 2023
1 parent 983b68a commit e79bbed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xmanager/xm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ def add(
An awaitable that would be fulfilled when the job is launched.
"""
# pyformat: enable

# Prioritize the identity given directly to the work unit at work unit
# creation time, as opposed to the identity passed when adding jobs to it as
# this is more consistent between job generator work units and regular work
# units.
identity = self.identity or identity

job = job_operators.shallow_copy_job_type(job)
if args is not None:
_apply_args(job, args)
Expand Down

0 comments on commit e79bbed

Please sign in to comment.