quantum-elixir/quantum-core

Synchronous job management API

開放

#499 建立於 2022年2月24日

 (1 則留言) (0 個反應) (0 位負責人)Elixir (153 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (2,408 顆星)
PR 合併指標
 (平均合併 1天 9小時) (30 天內合併 11 個 PR)

描述

I'm testing that my application adds jobs to quantum correctly based on some business restrictions and I'm using on_exit to remove jobs again after tests. This however is causing issues with the ecto sandbox, because even after calling Scheduler.delete_job the job has not been removed and jobs access the db even after being supposed to be removed. Currently I need to add a timeout here to delay my on_exit callback. While working on said feature I had similar issues with run_job, which also is async.

It would be great if the async nature of those job APIs would be highlighted in the docs and I'd really like to see options to have those operations be done synchronous as well.

貢獻者指南