Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR to fix nonidempotency #60

Merged
merged 1 commit into from
Jun 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hirefire/procs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os
import warnings
from collections import OrderedDict
from concurrent.futures import ThreadPoolExecutor

Expand Down Expand Up @@ -57,8 +58,8 @@ def load_procs(*procs):
for obj in procs:
proc = load_proc(obj)
if proc.name in loaded_procs:
raise ValueError('Given proc %r overlaps with '
'another already loaded proc (%r)' %
warnings.warn('Given proc %r overlaps with '
'another already loaded proc (%r), overwriting' %
(proc, loaded_procs[proc.name]))
loaded_procs[proc.name] = proc
return loaded_procs
Expand Down