Skip to content
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

fix: Cleanup db schema + identifier types + remove action key #589

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

daryllimyt
Copy link
Contributor

@daryllimyt daryllimyt commented Dec 4, 2024

Changes

  • Cleanup db schema + identifier types
  • Remove action key (computed field)

@github-actions github-actions bot added engine Improvements or additions to the workflow engine fix Bug fix frontend Improvements or additions to the frontend labels Dec 4, 2024
@daryllimyt
Copy link
Contributor Author

daryllimyt commented Dec 4, 2024

Unsure why this fails with

2024-12-04 23:28:56.413389Z [4361] | ERROR     tracecat.dsl.workflow:execute_task:344 - Activity execution failed with unexpected error | {'error': 'Task execution failed with unexpected error: Cannot access uuid.uuid4.__call__ from inside a workflow. If this is code from a module not used in a workflow or known to only be used deterministically from a workflow, mark the import as pass through.'}
2024-12-04 23:28:56.413755Z [4361] | ERROR     tracecat.dsl.scheduler:_schedule_task:191 - ApplicationError in DSLScheduler | {'wf_id': 'wf-00000000000000000000000000000000', 'wf_exec_id': 'wf-00000000000000000000000000000000:exec-test_child_workflow_success', 'wf_run_id': '41ef58de-59ad-4847-a236-4ff75cb78605', 'role': Role(type='service', workspace_id=UUID('9281b2f4-e116-4a8f-b01b-2b90078a3d9d'), user_id=UUID('00000000-0000-4444-aaaa-000000000000'), access_level=<AccessLevel.BASIC: 0>, service_id='tracecat-runner'), 'unit': 'dsl-scheduler', 'ref': 'parent', 'error': ApplicationError('RestrictedWorkflowAccessError: Task execution failed with unexpected error: Cannot access uuid.uuid4.__call__ from inside a workflow. If this is code from a module not used in a workflow or known to only be used deterministically from a workflow, mark the import as pass through.'), 'non_retryable': True}
2024-12-04 23:28:56.414047Z [4361] | ERROR     tracecat.dsl.scheduler:_handle_error_path:86 - Task failed with no error paths | {'wf_id': 'wf-00000000000000000000000000000000', 'wf_exec_id': 'wf-00000000000000000000000000000000:exec-test_child_workflow_success', 'wf_run_id': '41ef58de-59ad-4847-a236-4ff75cb78605', 'role': Role(type='service', workspace_id=UUID('9281b2f4-e116-4a8f-b01b-2b90078a3d9d'), user_id=UUID('00000000-0000-4444-aaaa-000000000000'), access_level=<AccessLevel.BASIC: 0>, service_id='tracecat-runner'), 'unit': 'dsl-scheduler', 'ref': 'parent'}
2024-12-04 23:28:57.316253Z [4361] | ERROR     tracecat.dsl.scheduler:start:227 - DSLScheduler got task exceptions, stopping... | {'wf_id': 'wf-00000000000000000000000000000000', 'wf_exec_id': 'wf-00000000000000000000000000000000:exec-test_child_workflow_success', 'wf_run_id': '41ef58de-59ad-4847-a236-4ff75cb78605', 'role': Role(type='service', workspace_id=UUID('9281b2f4-e116-4a8f-b01b-2b90078a3d9d'), user_id=UUID('00000000-0000-4444-aaaa-000000000000'), access_level=<AccessLevel.BASIC: 0>, service_id='tracecat-runner'), 'unit': 'dsl-scheduler', 'n_exceptions': 1, 'exceptions': {'parent': ApplicationError('RestrictedWorkflowAccessError: Task execution failed with unexpected error: Cannot access uuid.uuid4.__call__ from inside a workflow. If this is code from a module not used in a workflow or known to only be used deterministically from a workflow, mark the import as pass through.')}, 'n_visited': 1, 'n_tasks': 1}

Tried passing through uuid.uuid4 in dsl/worker.py but no effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Improvements or additions to the workflow engine fix Bug fix frontend Improvements or additions to the frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant