Skip to content

Commit

Permalink
fixed bug in presentation flow and updated to version of osbot-prefec…
Browse files Browse the repository at this point in the history
…t that has support for capturing the flow and task logs
  • Loading branch information
DinisCruz committed Oct 9, 2024
1 parent 5a84d04 commit 03223cb
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-pipeline__dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ env:
PREFECT_CLOUD__ACCOUNT_ID : ${{ secrets.PREFECT_CLOUD__ACCOUNT_ID }}
PREFECT_CLOUD__WORKSPACE_ID: ${{ secrets.PREFECT_CLOUD__WORKSPACE_ID }}

GSUITE__OAUTH2__DATA : ${{ secrets.GSUITE__OAUTH2__DATA }}
GDRIVE__TEMP_FOLDER : ${{ secrets.GDRIVE__TEMP_FOLDER }}

jobs:


Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-pipeline__main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
PREFECT_CLOUD__ACCOUNT_ID : ${{ secrets.PREFECT_CLOUD__ACCOUNT_ID }}
PREFECT_CLOUD__WORKSPACE_ID: ${{ secrets.PREFECT_CLOUD__WORKSPACE_ID }}

GSUITE__OAUTH2__DATA : ${{ secrets.GSUITE__OAUTH2__DATA }}
GDRIVE__TEMP_FOLDER : ${{ secrets.GDRIVE__TEMP_FOLDER }}

jobs:

run-unit-and-integration-tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def flow_events_to_prefect_server(self):
def setup__prefect_cloud(self):
with self.flow_events_to_prefect_server() as _:
if _.prefect_cloud_api.prefect_rest_api.prefect_is_server_online():
print("*****: setup__prefect_cloud - add_event_listener")
_.add_event_listener()
self.prefect_enabled = True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,17 @@ def deleting_presentation(self):
print('deleting', self.presentation_id)
self.gslides.presentation_delete(self.presentation_id)

@task()
def save_pdf_locally(self):
local_file = file_create_from_bytes("./test.pdf", self.pdf_bytes)
print(f"saved pdf into {local_file}")
# @task()
# def save_pdf_locally(self):
# local_file = file_create_from_bytes("./test.pdf", self.pdf_bytes)
# print(f"saved pdf into {local_file}")

@flow()
def flow__create_presentation(self) -> Flow:
self.create_presentation ()
self.editing_presentation ()
self.creating_pdf_bytes ()
self.deleting_presentation ()
self.save_pdf_locally ()
return 'all done'

def run(self):
Expand Down
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03223cb

Please sign in to comment.