@hotmeshio/hotmesh
Version:
Serverless Workflow
1 lines • 4.71 kB
JavaScript
'use strict';const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=-parseInt(l(0x10e))/0x1+-parseInt(l(0x12c))/0x2*(-parseInt(l(0x137))/0x3)+parseInt(l(0x10c))/0x4+-parseInt(l(0xf6))/0x5+-parseInt(l(0x133))/0x6*(-parseInt(l(0x120))/0x7)+parseInt(l(0xfb))/0x8+-parseInt(l(0x12d))/0x9*(-parseInt(l(0x142))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x54901));Object[m(0x102)](exports,m(0xf8),{'value':!0x0}),exports[m(0x13c)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0xf4;let h=e[f];return h;},b(c,d);}const errors_1=require(m(0x110)),collator_1=require('../collator'),mapper_1=require(m(0xf9)),pipe_1=require(m(0x136)),telemetry_1=require(m(0x104)),activity_1=require('./activity');class Signal extends activity_1[m(0x11c)]{constructor(c,d,f,g,h,j){super(c,d,f,g,h,j);}async[m(0x131)](){const n=m;let c;this[n(0x134)]['debug'](n(0x118),{'jid':this[n(0x111)][n(0x139)][n(0x11b)],'gid':this['context'][n(0x139)][n(0x11e)],'aid':this[n(0x139)]['aid']});try{await this[n(0x114)](),c=new telemetry_1[(n(0x10d))](this[n(0x100)][n(0x13b)],this[n(0x107)],this['metadata'],this[n(0x111)]),c[n(0xfa)](this[n(0x13a)]);const d=this[n(0x109)]['transact']();this['adjacencyList']=await this[n(0x138)](),this[n(0x140)](),this[n(0x128)](),await this[n(0xfe)](d),await collator_1[n(0x11f)]['notarizeEarlyCompletion'](this,d),await this[n(0x122)](this[n(0x103)][n(0x10b)]-0x1,d);const f=await d['exec']();n(0x12e)===this['config']['subtype']?await this[n(0x124)]():await this[n(0x108)]();const g=this['resolveStatus'](f),h={'app.job.jss':g},j=await this[n(0xfc)](this[n(0x103)],g);return j['length']&&(h[n(0x123)]=j[n(0x127)](',')),c[n(0x126)](),c['setActivityAttributes'](h),this['context'][n(0x139)][n(0x13d)];}catch(k){if(k instanceof errors_1[n(0xf5)])return void this[n(0x134)][n(0x129)](n(0x10a),{'error':k});if(k instanceof errors_1[n(0xf7)])return void this['logger'][n(0x11d)](n(0x132),{'error':k});if(k instanceof errors_1[n(0x125)])return void this[n(0x134)]['error']('signal-get-state-error',{'error':k});if(k instanceof errors_1['CollationError']){if(n(0x13e)===k[n(0x13f)])return void this['logger'][n(0x11d)](n(0x135),{'job_id':this[n(0x111)]['metadata'][n(0x11b)],'guid':this['context']['metadata'][n(0x10f)]});this[n(0x134)][n(0x129)](n(0x12a),{'error':k});}else this['logger'][n(0x129)](n(0x112),{'error':k});throw c?.['setActivityError'](k[n(0x113)]),k;}finally{c?.[n(0xff)](),this[n(0x134)][n(0x12f)](n(0x101),{'jid':this[n(0x111)]['metadata'][n(0x11b)],'gid':this[n(0x111)][n(0x139)][n(0x11e)],'aid':this['metadata']['aid']});}}[m(0xfd)](){const o=m;if(this[o(0x107)][o(0x106)]?.[o(0x117)])return new mapper_1[(o(0x105))](this[o(0x107)][o(0x106)][o(0x117)],this[o(0x111)])['mapRules']();}['mapResolverData'](){const p=m;if(this[p(0x107)][p(0xf4)]?.[p(0x117)])return new mapper_1[(p(0x105))](this[p(0x107)][p(0xf4)][p(0x117)],this[p(0x111)])['mapRules']();}async[m(0x108)](){const q=m,c=pipe_1['Pipe']['resolve'](this['config'][q(0x11a)],this[q(0x111)]),d=this[q(0xfd)](),f=pipe_1[q(0x130)][q(0x12b)](this[q(0x107)][q(0x119)],this[q(0x111)]),g=pipe_1[q(0x130)][q(0x12b)](this[q(0x107)]['code'],this[q(0x111)]);return await this[q(0x100)][q(0x121)](c,d,f,g);}async['hookAll'](){const r=m,c=this[r(0xfd)](),d=this['mapResolverData']();this['config'][r(0x115)]&&(d['scrub']=!0x0);const f=[pipe_1['Pipe']['resolve'](this[r(0x107)][r(0x116)],this['context'])+':'+pipe_1['Pipe'][r(0x12b)](this[r(0x107)][r(0x141)],this[r(0x111)])];return await this[r(0x100)][r(0x124)](this[r(0x107)]['topic'],c,d,f);}}function a(){const s=['aid','duplicate','fault','mapOutputData','key_value','3060fYIVKp','resolver','InactiveJobError','2799095fKXFuG','GenerationalError','__esModule','../mapper','startActivitySpan','2624960kJCvfO','transition','mapSignalData','setState','endActivitySpan','engine','signal-process-end','defineProperty','adjacencyList','../telemetry','MapperService','signal','config','hookOne','store','signal-inactive-job-error','length','678796JVRMEA','TelemetryService','512622obshLL','guid','../../modules/errors','context','signal-process-error','message','verifyEntry','scrub','key_name','maps','signal-process','status','topic','jid','Activity','info','gid','CollatorService','2243437HwPpnD','hook','setStatus','app.activity.mids','hookAll','GetStateError','mapActivityAttributes','join','mapJobData','error','signal-collation-error','resolve','4076EyjUJT','99iiInlK','all','debug','Pipe','process','process-event-generational-job-error','6Wiqjjm','logger','signal-collation-overage','../pipe','879aiCdmd','filterAdjacent','metadata','leg','appId','Signal'];a=function(){return s;};return a();}exports[m(0x13c)]=Signal;