feat: publish_collectible in queue retry when no collectible_item_id
This commit is contained in:
+3
-1
@@ -97,7 +97,9 @@ async def process_onsale_queue():
|
|||||||
f"Retrying onsale for asset {item['asset_id']} (Attempt {item['retry_count'] + 1})"
|
f"Retrying onsale for asset {item['asset_id']} (Attempt {item['retry_count'] + 1})"
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
collectible_item_id = item["collectible_item_id"] or await roblox_onsale.get_collectible_item_id(item["asset_id"])
|
collectible_item_id = item["collectible_item_id"] or await roblox_onsale.publish_collectible(
|
||||||
|
item["asset_id"], item["group_id"], item["name"], item["description"], price=5
|
||||||
|
)
|
||||||
await roblox_onsale.onsale_asset(collectible_item_id)
|
await roblox_onsale.onsale_asset(collectible_item_id)
|
||||||
database.remove_from_onsale_queue(item["id"])
|
database.remove_from_onsale_queue(item["id"])
|
||||||
print(
|
print(
|
||||||
|
|||||||
Reference in New Issue
Block a user