Fork me on GitHub
#onyx
<
2017-02-21
>
hunter17:02:11

@lucasbradstreet the problem still persists .. Here is the same test run again. http://ix.io/nGm This time I made sure to give you default onyx.log output from start of job until end of killing job. The issue is that after one segment is read off the tx-log from datomic, no more segments are produced from the tx-log until job is killed.

lellis20:02:33

Hello all! I have some problem in my job, here the exeptions:. Unable to resolve symbol: find-rule in this context so the question is: Its possible to run a rule of a datomic query inside a task? here's my example:

(defn find-pattern [pattern segmento]
  (d/q '[:find ?e ?a ?v ?tx ?op
         :in $ %
         :where
         (find-rule ?e)
         [?e ?a ?v ?tx ?op]]
       segmento (rule pattern)))

lellis20:02:32

the rule method:

(defn rule [rules-data]
  (as-> rules-data rules
        (into [] (concat '[(find-rule ?e)] [rules]))
        [rules]))

lellis20:02:23

found the problem, im call (rule pattern) in my catalog build and inside task again.