Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6503d32

Browse files
EvanSungpycook
authored andcommitted
fix(ci_cache): ci cache async args (veops#215)
1 parent 887a69c commit 6503d32

File tree

1 file changed

+2
-2
lines changed
  • cmdb-api/api/views/cmdb

1 file changed

+2
-2
lines changed

cmdb-api/api/views/cmdb/ci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ def get(self, ci_id=None):
228228
from api.tasks.cmdb import ci_cache
229229
from api.lib.cmdb.const import CMDB_QUEUE
230230
if ci_id is not None:
231-
ci_cache.apply_async([ci_id], queue=CMDB_QUEUE)
231+
ci_cache.apply_async(args=(ci_id, None, None), queue=CMDB_QUEUE)
232232
else:
233233
cis = CI.get_by(to_dict=False)
234234
for ci in cis:
235-
ci_cache.apply_async([ci.id], queue=CMDB_QUEUE)
235+
ci_cache.apply_async(args=(ci.id, None, None), queue=CMDB_QUEUE)
236236

237237
return self.jsonify(code=200)
238238

0 commit comments

Comments
 (0)