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

[CVAT] Fix Recording Oracle webhook reception #2818

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ def get_type(cls) -> EventTypeTag:
return get_type_tag_for_event_class(cls)


class JobLauncherEvent_EscrowCreated(OracleEvent):
pass # escrow is enough


class JobLauncherEvent_EscrowCanceled(OracleEvent):
pass # escrow is enough


class RecordingOracleEvent_JobCompleted(OracleEvent):
pass # escrow is enough for now

Expand All @@ -41,11 +33,16 @@ class ExchangeOracleEvent_JobFinished(OracleEvent):
pass # escrow is enough for now


class ExchangeOracleEvent_EscrowCleaned(OracleEvent):
pass


_event_type_map = {
RecordingOracleEventTypes.job_completed: RecordingOracleEvent_JobCompleted,
RecordingOracleEventTypes.submission_rejected: RecordingOracleEvent_SubmissionRejected,
ExchangeOracleEventTypes.job_creation_failed: ExchangeOracleEvent_JobCreationFailed,
ExchangeOracleEventTypes.job_finished: ExchangeOracleEvent_JobFinished,
ExchangeOracleEventTypes.escrow_cleaned: ExchangeOracleEvent_EscrowCleaned,
}


Expand Down