Project

General

Profile

Bug #20107

Scheduling a remote job to recurring creates identical duplicate sub-tasks

Added by Michael Curran about 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

When scheduling a remote job, and selecting the template. If you select "Set up recurring execution" , the provided job tasks when run, show duplicate tasks. However if you set the task to immediate and let it run, the resulting sub task shows only the necessary entries for the task.

Associated revisions

Revision 0749f130 (diff)
Added by adamruzicka about 5 years ago

Fixes #20107 - Resolve targeting only once

History

#1 Updated by Adam Ruzicka about 5 years ago

  • Project changed from foreman-tasks to Foreman Remote Execution
  • Category set to Foreman
  • Target version set to 113

Additional notes:
Apparently Targeting#resolve_hosts! gets called twice when using delayed and/or recurring execution with static targeting, leading to duplicate hosts and RunHostJob sub-tasks. Using dynamic targeting doesn't seem to trigger the bug.

#2 Updated by Ivan Necas about 5 years ago

  • Target version changed from 113 to 1.14.2

#3 Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/262 added

#4 Updated by Ivan Necas about 5 years ago

  • Bugzilla link set to 1473341

#5 Updated by Ivan Necas about 5 years ago

  • Target version changed from 1.14.2 to 1.17.0-RC2

#6 Updated by Ivan Necas about 5 years ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Ivan Necas about 5 years ago

  • Target version changed from 1.17.0-RC2 to 1.17.1
  • Legacy Backlogs Release (now unused) set to 285

Also available in: Atom PDF