Skip to content

deploy bot async#46

Merged
irania9O merged 1 commit intomainfrom
feat/async-deployment
Jun 5, 2025
Merged

deploy bot async#46
irania9O merged 1 commit intomainfrom
feat/async-deployment

Conversation

@irania9O
Copy link
Collaborator

No description provided.

Comment on lines +20 to +21
dockerfile_dir = f"./factory/{bot_id}"
os.makedirs(dockerfile_dir, exist_ok=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این جایی که این داکرفایل ها رو ذخیره میکنیم volume باشه

و کد موقع بالا اومدنش اون فایل ها رو شروع کنه اجرا کنه

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

نه فکر کنم نیازی نباشه!
چون ک کدش هربار جنریت میشه!

Comment on lines +117 to 118
task = deploy_bot.delay(bot)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

چک کنیم اگه قبلا زده بات دیپلوی شه دیگه دوباره دیپلوی نشه

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

نکته داره اونم نکتش اینه باید روی نسخش یسری کار کنیم که مثلا هش فایلش بشه تگش و این داستانا نیازه؟

Comment on lines +18 to +20
@app.task(bind=True, ignore_result=True)
def debug_task(self):
print(f"Request: {self.request!r}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این رو پاک کنیم

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

PyJWT==2.10.1
PyYAML==6.0.2
redis==5.2.1
redis>=4.5.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

چرا؟

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip freeze > requirements.txt

@irania9O irania9O merged commit 1d2d8a2 into main Jun 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants