π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: revert workflow|
Nevo David40c443ba9631
diff --git a/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.1.ts b/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.1.tsindex c0f8ae0a3..b8fce6acb 100644--- a/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.1.ts+++ b/apps/orchestrator/src/workflows/post-workflows/post.workflow.v1.0.1.ts@@ -1,5 +1,4 @@import { PostActivity } from '@gitroom/orchestrator/activities/post.activity';-import * as Sentry from '@sentry/node';import {ActivityFailure,ApplicationFailure,@@ -172,14 +171,6 @@ export async function postWorkflowV101({postsResults[i].releaseURL);- if (i === 0) {- try {- const latency = Date.now() - startTime.getTime();- Sentry.metrics.count('posts.published.success', 1, { attributes: { provider: post.integration?.providerIdentifier } } as any);- Sentry.metrics.distribution('posts.publish_latency_ms', latency, { attributes: { provider: post.integration?.providerIdentifier } } as any);- } catch (e) {}- }-if (i === 0) {// send notification on a sucessful postawait inAppNotification(@@ -216,16 +207,6 @@ export async function postWorkflowV101({// for other errors, change state and inform the user if neededawait changeState(postsList[0].id, 'ERROR', err, postsList);- try {- const cause = (err as any)?.cause;- const failure_reason = (cause && (cause as any).type) || (err as any)?.message || 'unknown';- Sentry.metrics.count('posts.published.failure', 1, { attributes: { provider: post.integration?.providerIdentifier, failure_reason } } as any);- } catch (e) {}- try {- const cause = (err as any)?.cause;- const reason = (cause && (cause as any).type) || (err as any)?.message || 'unknown';- Sentry.metrics.count('task_failures_by_reason', 1, { attributes: { reason } } as any);- } catch (e) {}// specific case for bad body errorsif (@@ -252,13 +233,6 @@ export async function postWorkflowV101({if (postsResults.length === before) {// all retries exhausted without success- try {- Sentry.metrics.count('temporal.retry_exhausted', 1, { attributes: { workflow: 'postWorkflowV101' } } as any);- } catch (e) {}- try {- Sentry.metrics.count('posts.published.failure', 1, { attributes: { provider: post.integration?.providerIdentifier, failure_reason: 'retry_exhausted' } } as any);- } catch (e) {}-return false;}}