Skip to content

Commit

Permalink
refactor: update scheduled job for bulk transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Nov 20, 2023
1 parent a5a5341 commit fb06ad7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erpnext/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
"hourly_long": [
"erpnext.accounts.doctype.process_subscription.process_subscription.create_subscription_process",
"erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries",
"erpnext.bulk_transaction.doctype.bulk_transaction_log.bulk_transaction_log.retry_failing_transaction",
"erpnext.utilities.bulk_transaction.retry",
],
"daily": [
"erpnext.support.doctype.issue.issue.auto_close_tickets",
Expand Down
5 changes: 4 additions & 1 deletion erpnext/utilities/bulk_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def transaction_processing(data, from_doctype, to_doctype):


@frappe.whitelist()
def retry(date: str | None):
def retry(date: str | None = None):
if not date:
date = today()

if date:
failed_docs = frappe.db.get_all(
"Bulk Transaction Log Detail",
Expand Down

0 comments on commit fb06ad7

Please sign in to comment.