-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: create job to re decode tx by type #255
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
đổi tên cái file này đi, nó dùng chung mà
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
.joinRelated('messages') | ||
.where('transaction.id', '>', currentId) | ||
.andWhere('messages.type', type) | ||
.limit(config.jobRedecodeTx.limitRecordGet); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
như này là nó limit theo số message đấy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
em distinct đó anh, nên câu này limit theo số tx đó
} | ||
|
||
const patchQueriesMsg: any[] = []; | ||
const patchQueriesTx = txOnDB.map((tx) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cái đoạn này có dùng chung được cái gì đã code ko?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
không có anh ạ
}) | ||
async jobRedecodeTxIBC() { | ||
// check if job not done, execute as | ||
const blockCheckpoint = await BlockCheckpoint.query() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cái này thì cứ gọi là chạy chứ sao cần checkpoint nhỉ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thêm checkpoint để biết là nó đã chạy ấy anh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nếu muốn biết nó đã chạy thì để ở trong job là được, chứ lưu vào nó lại lẫn với các job khác
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cái này đang ở trong job luôn mà anh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peara em cần cái này ddeert làm ibc luôn ạ
No description provided.